471,334 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,334 software developers and data experts.

libxml2 and parsing


I'm trying to use libxml2 (with C) to extract some elements from an xml doc
which is in memory.

I've managed to parse the memory buffer ok into an xmlDocPtr but can't
figure out the functions I should be using to extract a repeated set of

For example:

<person name="fred">123</person><person name="bert">345</person>...<person

How would I use a loop to pickup each person element in turn, and then
extract the name attribute, and the numeric value of the element?

Thanks in advance.

Aug 3 '05 #1
0 830

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Juergen R. Plasser | last post: by
5 posts views Thread by Rene Olsthoorn | last post: by
1 post views Thread by Victor Ng | last post: by
4 posts views Thread by ankit | last post: by
1 post views Thread by cesar.ortiz | last post: by
2 posts views Thread by jianbing.chen | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.