O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Java and SAX

The previous chapter was all about using Java and the XML DOM. However, some people find using the DOM difficult and think that the whole concept of treating an XML document as a tree is unnecessarily complex. Rather than having to navigate through the whole document, they say, wouldn't it be great if the whole document came to you? That's the idea behind the Simple API for XML (SAX), and this chapter is dedicated to it. SAX really is a lot easier to use for many—possibly even most—XML parsing that you have to do. If you need to know the hierarchy of a document, use DOM methods; if you don't, you might try SAX.

You may be surprised to learn that we've already been putting the ideas behind SAX to work throughout the entire ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required