How can libxml2 be used to parse data from XML?
I have looked around at the libxml2 code samples and I am confused on how to piece them all together. What are the steps needed when using libxml2 to just parse or extract data from an XML file? I would like to get hold of, and possibly store information for, certain attributes. How is this done? I believe you first need to create a Parse tree. Maybe this article can help, look through the section which says How to Parse a Tree with Libxml2 . I found these two resources helpful when I was learning to use libxml2 to build a rss feed parser. Tutorial with SAX interface Tutorial using the DOM