Hi,
I have problem with QDomDocument and parsing xml namespace. The following xml element
<d:prop>
<d:prop>
To copy to clipboard, switch view to plain text mode
for tagName() give me
"d:prop"
"d:prop"
To copy to clipboard, switch view to plain text mode
but for localName() and prefix() give me empty string why?
What I am doing wrong here?
Added after 7 minutes:
Second parameter of setContent() must be set to true for namespace processing...
so
xmlDocument.setContent(xmlContent, true);
QDomDocument xmlDocument;
xmlDocument.setContent(xmlContent, true);
To copy to clipboard, switch view to plain text mode
I hope this can help someone else with similar problem.
Bookmarks