PDA

View Full Version : write new line with qxmlstreamwriter using 



jh
3rd July 2012, 15:46
i need to write new line in an character section like this:
<abc>edf &#xD; xyz</abc>

i use QXmlStreamWriter::writeCharacters();

the problem is that qxmlstreamwriter replaces '&' bei '&amp;' which results in :
<abc>edf &amp;#xD; xyz</abc>

how can i avoid that?

best regards,
jh

wysota
3rd July 2012, 21:39
QXmlStreamWriter::writeEntityReference()

jh
11th July 2012, 20:05
QXmlStreamWriter::writeEntityReference()

works! thanx a lot!