This pages describes the XML utility API provided by the language.
See also: Built-in Classes, DomDocument class, DomNode class, SaxAttributes class, XmlReader class, XmlWriter class, SaxDocumentHandler class.
The DOM (Document Object Model) is a programming interface specification being developed by the World Wide Web Consortium (W3C), that lets a programmer create and modify HTML pages and XML documents as full-fledged program objects. DOM is a full-fledged object-oriented, complex but complete API, providing methods to manipulate the full XML document as a whole. DOM is designed for small XML trees manipulation.
The SAX (Simple API for XML) is a programming interface for XML, simpler as DOM. SAX is event-driven, streamed-data based, and designed for large trees.
The runtime system includes a set of built-in classes based on DOM and SAX.
The DOM API is composed of:
The SAX API is composed of:
The runtime system represents the user interface of a program with a DOM tree. User interface elements can be manipulated with the built-in classes described in this section.
For more details about the user interface manipulation, see the Dynamic User Interface.