title: Change DOM parser to not use short notation for empty nodes
body: <p>Is there anyway to change DOM Parser Empty notation from short to long form?</p>
  
  <p>I need</p>
  
  <pre><code> &lt;book&gt;&lt;/book&gt;
  </code></pre>
  
  <p>instead of book </p>
  
  <pre><code>&lt;book/&gt;
  </code></pre>
  
  <p>We have a third party XML reader which won't work with short notation.All my XML object are DOM. What is best way going about this?</p>
  
  <pre><code>TransformerFactory transformerFactory = TransformerFactory.newInstance();
  Transformer transformer = transformerFactory.newTransformer();
  DOMSource source = new DOMSource(doc);
  StreamResult result = new StreamResult(XMLFile);
  transformer.transform(source, result);
  </code></pre>
  
  <p>Thanks</p>