title: How to save parsed and changed DOM document in xml file?
body: <p>I have xml-file. I need to read it, make some changes and write new changed version to some new destination.</p>
  
  <p>I managed to read, parse and patch this file (with <code>DocumentBuilderFactory</code>, <code>DocumentBuilder</code>, <code>Document</code> and so on).</p>
  
  <p>But I cannot find a way how to save that file. Is there a way to get it's plain text view (as <code>String</code>) or any better way?</p>