10.4. Summary

We started with a look at filters, which sit between a SAX parser and an application, and the three kinds of things a filter can do: document transformation, document validation, and information extraction. We then looked at how the inheritance filter, written by John Cowan, can be used to transform XML documents to support inheritable attributes.

Following that, we turned our attention to MDSAX—a framework for building structures of filters with a shared context. We saw that there were five more things a filter in MDSAX could do: manage a sequence of filters, route events between filters, maintain a common context, instantiate objects, and configure objects built by other filters. These additional capabilities give MDSAX the ability ...

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.