[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5. The DOM module

A default SAX implementation is provided in the tree_readers file, through its Parse function. This reads an XML stream and creates a tree in memory. The tree can then be manipulated through the DOM module.

Note that the encodings.ads file specifies the encoding to use to store the tree in memory. Full compatibility with the XML standard requires that this be UTF16, however, it is generally much more memory-efficient for European languages to use UTF8. You can freely change this and recompile.

What is the Document Object Model?

The Document Object Model is a platform- and language-neutral interface that will allow programs and scripts to dynamically access and update the content, structure and style of documents. The document can be further processed and the results of that processing can be incorporated back into the presented page. This is an overview of DOM-related materials here at W3C and around the web.

Why the Document Object Model?

"Dynamic HTML" is a term used by some vendors to describe the combination of HTML, style sheets and scripts that allows documents to be animated. The W3C has received several submissions from members companies on the way in which the object model of HTML documents should be exposed to scripts. These submissions do not propose any new HTML tags or style sheet technology. The W3C DOM WG is working hard to make sure interoperable and scripting-language neutral solutions are agreed upon.

The DOM (Document Object Model) is a set of subprograms to create and manipulate XML trees in memory.

You can create such a tree through the tree_readers.Parse function.

Only the Core module of the DOM standard is currently implemented, other modules will follow.


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by Emmanuel Briot on October, 7 2003 using texi2html