I need to read an XML formatted document from a C program 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.
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.
Does anyone know of a library other than lib eXpat to do this or code to do this?
Thanks!
Mini-XML looks promising
http://www.minixml.org/