title: Is it possible to specify the behavior of EOL when using XMLOutputFactory?
body: <p>I like to write an xml Elem to a file, but I want to set the line separator between each node of the elem, so when opening the file under windows or ubuntu I have the correct format. for example :</p>
  
  <pre><code>val lineSep = System.getProperty("line.separator") 
  val xmlData : Elem = &lt;person&gt;
         &lt;firstName&gt;John&lt;/firstName&gt;
         &lt;lastName&gt;Doe&lt;/lastName&gt;
    &lt;emails&gt;
    &lt;email type=”primary”&gt;john.doe@noone.com&lt;/email&gt;
    &lt;email type=”secondary”&gt;john.doe@noone.com&lt;/email&gt;
    &lt;/emails&gt;
    &lt;address&gt;
    &lt;street&gt;595 Market Street&lt;/street&gt;
    &lt;city&gt;San Francisco&lt;/city&gt;
    &lt;zip&gt;94105&lt;/zip&gt;
    &lt;/address&gt;
    &lt;/person&gt;
  
  val xmlStreamWriter = XMLOutputFactory.newInstance.createXMLStreamWriter(outputstream)
  xmlStreamWriter.writeDTD(xmlData)
  </code></pre>
  
  <p>How to write it into a file considering the lineSeparator?
  the <strong>XMLOutputFactory</strong> have the method  <strong>setProperty()</strong> is it possible to specify the line separator here?</p>