This is what I need to do: I need to read an XML formatted document and extract from it the elements and their values, for example in the following code:
<user name="Mark">
<param name="Age" value="21"/>
<param name="Country" value="NL"/>
</user>
I need to extract: name = Mark, Age = 21 and Country = NL.
Up until today i've been doing this parsing manually which is a pain.
Now I don't care whether the file a "proper XML" or all that, I don't care about DTD's or other standard XML requirements. I just need to read and parse the values.
Anyone knows (other than lib eXpat) a lib to do this or code to do this? Thanks!
Jess
EDIT:
Yes, I forgot to mention the platform: Windows and Linux. In plain C, not C++