O'Reilly logo

MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL by James Turner

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

Summary

The Xerces parser offers a way to easily read and write XML data from Java. You have your choice of two different methods of parsing: You can use SAX, which is an event-driven parser that uses callbacks to event handlers that you provide, or you can use DOM, which loads the entire XML document into an object-oriented tree of nodes that your code can walk to discover content.

You can also use DOM to create a brand-new hierarchy and then generate XML output based on it. This has the advantage of always generating syntactically correct XML.

More packages are being written each day to use XML in some way. In fact, it is nearly impossible to develop a major application anymore without needing to read or write XML. As a result, learning to ...

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