I use XMLOutputter to write xml file to use it then in android. When the file is written, string
<string name="sname"><u>Text</u></string>
is written as
<string name="sname"><u>Text<u></string>
I read "<u>Text<u>" from database and then put it into jdom Document. Then I write the document using
XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());
Writer writer = new OutputStreamWriter(new FileOutputStream(file), "utf-8");
outputter.output(doc, writer);
writer.close();
How can I prevent escaping and put the exact string from database to file? (I want to have '<', not <
there)