PDA

View Full Version : XML human readable string.



m.p
15th July 2011, 12:45
Hello,

i have an xml in my string, and i want it to be a human readable. QXmlSimpleWritter has an autoformat function. But how can I format a xml that i'm not creating with QXmlSimpleWritter?

best regards
mp

mcosta
15th July 2011, 14:24
You can use QDomDocument.

With QDomDocument::setContent you can read the XML string and with QDomDocument::toString() to obtaint a proper string