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.
XMLC++

Avatar of undefined
Last Comment
Ingo Foerster

8/22/2022 - Mon
evilrix

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

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Ingo Foerster

ASKER
Own solution. Published to share with people here.
Your help has saved me hundreds of hours of internet surfing.
fblack61