Link to home
Start Free TrialLog in
Avatar of Ingo Foerster
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:

<?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>

Open in new window


I want to read the attribute projecttype that can stay in front or behind name. (Not my idea).

Any help will be welcome.
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

>> But I always fail.
Example code with details of the errors you get would be useful.
ASKER CERTIFIED SOLUTION
Avatar of Ingo Foerster
Ingo Foerster

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ingo Foerster
Ingo Foerster

ASKER

Own solution. Published to share with people here.