champ
22nd June 2010, 19:47
Hi
I want to display the xml data in QDOMDocument in console when my application executes.
I have this code:
QDomDocument xml;
if ( !xml.setContent( content ) ) {
mDebug() << "Cannot parse xml file ";
return;
}
QDomElement root = xml.documentElement();
content is declared as QByteArray &constant.
My primary aim is to see the structure of the xml file being downloaded.
How can i do this in console or otherwise ?
I want to display the xml data in QDOMDocument in console when my application executes.
I have this code:
QDomDocument xml;
if ( !xml.setContent( content ) ) {
mDebug() << "Cannot parse xml file ";
return;
}
QDomElement root = xml.documentElement();
content is declared as QByteArray &constant.
My primary aim is to see the structure of the xml file being downloaded.
How can i do this in console or otherwise ?