3.5. Summary

This chapter introduced you to the key methods of dealing with XML documents programmatically. All processing of XML documents starts with a parser, which ensures that the document is well-formed. Some XML parsers are also validating, which means that they can confirm that the document follows the rules specified in the Document Type Definition (DTD).

One method of acting upon the content of an XML document is to integrate document handlers with the parser. This method produces lightweight XML document processing solutions, such as when using the Simple API for XML (SAX). SAX is an event-driven processing model that will call methods inside the developer's application to process specific parts of an XML document that have been found. ...

Get Enterprise Application Integration With XML and Java™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.