SAX Support in the IDE

See Also 

The Simple API for XML (SAX) is a serial access protocol for XML. SAX is an event-driven API that you can use in your Java programs by registering a document handler with a SAX parser. After registration, the parser invokes your callback methods whenever it encounters a new XML tag, error, or other special condition.

You typically use the SAX protocol with servlets and network-oriented programs. SAX is the fastest and least memory-intensive mechanism currently available for dealing with XML documents. If you are writing an application that displays and possibly modifies an XML document, you might prefer to use the DOM mechanism.

Before you can generate a SAX document handler that can read your XML files, you define a DTD for the files you want to handle. The IDE uses the DTD to generate the following files:

The IDE's approach to generating SAX document handlers has the following benefits:

For a tutorial on serial access with SAX, see:

http://java.sun.com/xml/docs/tutorial/sax/index.html
See Also
Generating a SAX Document Handler
Generating a DOM Tree Scanner
Creating a DTD
DTD Node
XML Node


Legal Notices