Expat XML
XML / XSL
2
Posts
2
Posters
0
Views
1
Watching
-
Hi everyone, I'm new to XML and my question is how does one use the Expat library to look for let’s say all of the authors in a XML file. Any help would be greatly appreciated. Ken
-
Hi everyone, I'm new to XML and my question is how does one use the Expat library to look for let’s say all of the authors in a XML file. Any help would be greatly appreciated. Ken
Expat uses a callback mechanism to parse documents (similar to SAX). So, basically you make a callback function for elements that checks if the element is an "author" (and does something with that data), you register that handler, then you start the parser. There is a good tutorial on getting started with Expat here: "Using Expat" by Clark Cooper. - Mike