- Using XML
- Designing an XML Dialect
- Processing XML with Java
- Processing XML with XOM
- Summary
- Q&A
- Quiz
- Exercises
Processing XML with Java
Java supports XML through the Java API for XML Processing, a set of packages for reading, writing, and manipulating XML data.
The javax.xml.parsers package is the entry point to the other packages. These classes can be used to parse and validate XML data using two techniques: the Simple API for XML (SAX) and the Document Object Model (DOM). However, they can be difficult to implement, which has inspired other groups to offer their own class libraries to work with XML.
You’ll spend the remainder of the day working with one of these alternatives: the XML Object Model (XOM) library, an open source Java class library that makes it extremely easy to read, write, and transform XML data.