HomeXML Page 5 - XML Parsing With SAX and Xerces (part 2)
Endnote - XML
The first part of this article demonstrated the basics of the Xerces XML parser, explaining how it could be used to process XML documents in a non-Web environment. This concluding section closes the circle, taking everything you've learned so far and demonstrating how it can be applied to create dynamic Web pages from static XML documents with Xerces.
That's about it for this article. Over the preceding pages, you learned more than you ever wanted to know about the Xerces SAX parser, using it to develop simple XML-based applications in both Web and non-Web environments. You (hopefully) understood how SAX works, gained an insight into what callback functions do, and learned how to use Xerces' interfaces in combination with simple Java constructs to quickly and easily create dynamic Web pages from static XML documents.
I hope you enjoyed it, and that it helped you to gain a greater understanding of how to process XML and use it in a Java-based environment - both on and off the Web. In case you'd like more information on the topic, you should consider bookmarking the following sites:
Note: All examples in this article have been tested with JDK 1.3.0, Apache 1.3.11, mod_jk 1.1.0, Xerces 1.4.4 and Tomcat 3.3. Examples are illustrative only, and are not meant for a production environment. YMMV!