Link to home
Start Free TrialLog in
Avatar of daljv
daljv

asked on

Expat and XML

Hi!
I can't seem to parse an XML file with an empty tag. I have the sample xml file:

<Notes>
<score>
   <result>90/100</result>
   <Math subject = "calculus" />
</score>
</Notes>

I wanted to parse it like this:
Name   : result
Value   : 90/100  
Attribute: ""

Name   : Math
Value   : ""
Attribute: calculus


I have parsed the result tag but I can't seem to parse the empty tag with EXPAT. Can anybody please help me?
ASKER CERTIFIED SOLUTION
Avatar of Yury_Delendik
Yury_Delendik

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