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