Summary
This tutorial has shown you several different parsers and interfaces for working with XML documents in Java technology. The interfaces are portable across different parser implementations, meaning you can change the infrastructure behind your XML application without changing your source code. The tutorial also discussed the strengths and weaknesses of the various APIs, and looked at some scenarios for using XML and the various APIs to solve real-world problems.
I hope this gets you started writing your own XML applications in the Java language.
To keep this tutorial at a manageable length, I didn't cover a number of advanced topics. I will cover all of these in an advanced XML programming tutorial here at developerWorks. Some of the topics to be covered are:
- Handling namespaces
- Validation with DTDs and XML schema languages
- Converting between APIs (generating DOM trees from SAX events, for example)
- Creating DOM and JDOM objects without an XML source document
- Stopping a SAX parser before it finishes reading the XML source
- Moving nodes around in a DOM tree
- DOM serialization functions
- Advanced DOM topics (ranges, traversal, and other parts of the Level 2 and Level 3 specs)


