Ingo Foerster
asked on
QDomDocument question
Hello,
I want to read some values from a XML file by QDomDocument class. But I always fail. So I hope someone know how to read atributes with QDomDocument . My XML file looks like:
I want to read the attribute projecttype that can stay in front or behind name. (Not my idea).
Any help will be welcome.
I want to read some values from a XML file by QDomDocument class. But I always fail. So I hope someone know how to read atributes with QDomDocument . My XML file looks like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xbel>
<xbel name="project" version="1.0" date="Di Jul 21 2015" size="0" item_count="0">
<settings/>
<disk projecttype="1" name="Disk[New]" arranger=""/>
</xbel>
I want to read the attribute projecttype that can stay in front or behind name. (Not my idea).
Any help will be welcome.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Own solution. Published to share with people here.
Example code with details of the errors you get would be useful.