Hi,
I have to parse an xml file, which contains "%" as a text of a node.
QDomelement.text() returns nothing.
example:
<TD>%</TD>
Hi,
I have to parse an xml file, which contains "%" as a text of a node.
QDomelement.text() returns nothing.
example:
<TD>%</TD>
Assuming that "e" is the element whose tagName() is "TD", here is the code you'll need to extract your "%" :
text = e.firstChild().toText().data();
Current Qt projects : QCodeEdit, RotiDeCode
Bookmarks