About Editing XML Documents
See Also
The Extensible Markup Language (XML) is a subset of SGML designed to
enable generic SGML to be served, received, and processed on the Web easily
and efficiently. Because its format is not fixed, XML enables you to design
your own customized markup languages with which to create various types of
documents.
In the IDE, XML documents are represented by XML nodes (
).
The IDE provides tools to assist you in creating, editing, checking, and validating
the various XML document types it supports.
XML Document Types in the IDE
The IDE supports several types of XML documents, including:
XML Protocols in the IDE
- SAX. 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.
Typically, the SAX protocol is used with servlets and network-oriented
programs. SAX is the fastest and least memory-intensive mechanism currently
available for dealing with XML documents.
- DOM. The Document Object Model (DOM) protocol converts an XML document
into a collection of objects in your program. You can then manipulate the
object model in any way that makes sense. This mechanism is also known as
the random access protocol because it permits you to access any part of the
data at any time. Typically, this protocol is used in applications that display
and modify XML documents.
- See Also
- Working With XML Documents in the IDE
- IDE XML Task Quick Reference
- Global XML Settings
Legal Notices