This is what I need to do: I need to read an XML document and extract elements and their values โโfrom it, 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.
Until today, I did this analysis manually, which was painful.
Now I donโt care if the file is โvalid XMLโ or whatever, I donโt care about DTD or other standard XML requirements. I just need to read and analyze the values.
Does anyone know (except lib eXpat) lib for this or code for this? Thanks!
Jess
EDIT:
Yes, I forgot to mention the platform: Windows and Linux. In plain C, not C ++
c xml
Jessica
source share