title: XML File not found when transform
body: <p>I was trying to modify an xml file by using DOM and this happened:</p>
  
  <pre><code>javax.xml.transform.TransformerException: java.io.FileNotFoundException: file:\D:\myproject\build\web\xml\myFile.xml (The filename, directory name, or volume label syntax is incorrect)
          at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:263)
          at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
          at utils.UpdateUtils.BookUpdate(UpdateUtils.java:36)
  </code></pre>
  
  <p>This is my code</p>
  
  <pre><code>        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
          DocumentBuilder db = dbf.newDocumentBuilder();
  
          Document doc = db.parse(f);
          searchAndModify(doc); //modify xml's contents
  
          Source source = new DOMSource(doc);
          Result result = new StreamResult(f);
          TransformerFactory tff = TransformerFactory.newInstance();
          Transformer trans = tff.newTransformer();
          trans.transform(source, result);
  </code></pre>
  
  <p>f is my xml, generated. It parsed to Document doc just fine. However, when transformed, exception was thrown.</p>
  
  <p>I've tried to parse to a new xml, same folder, but to no avail:</p>
  
  <pre><code>Result result = new StreamResult(new File(path, "newFile.xml"));
  
  javax.xml.transform.TransformerException: java.io.FileNotFoundException: file:\D:\myProject\build\web\newFile.xml (The filename, directory name, or volume label syntax is incorrect)
  </code></pre>
  
  <p>Anyone has encountered this problem or has a solution for it? Please help me!</p>