Sablotron Guide and Reference

DOM types DOM

Summary

Types introduced by .Sablotron DOM Level 2 interface.

Description

Major new types are SDOM_Document (a DOM tree) and SDOM_Node (a node of the tree). A document can also be used in place of a node. This corresponds to the DOM spec, Document is a subclass of Node. When used in this way, the document represents its own root node (which is not the same as the `root element' aka 'document element').

Other types include:

SDOM_char: a DOM character type. Currently, this is just char. Note that the DOM spec requires that the DOM implementations work with UTF-16. Sablotron deviates from this by using UTF-8 instead.

SDOM_NodeType: a node type enum. Some of the values are SDOM_ELEMENT_NODE, SDOM_ATTRIBUTE_NODE and SDOM_TEXT_NODE. See sdom.h for the rest.

SDOM_NodeList: a node list returned by some of the functions.

SDOM_Exception: DOM exception codes enum, with values such as SDOM_NOT_FOUND_ERR or SDOM_INVALID_NODE_TYPE. See sdom.h for details.

See Also

Groups [ DOM ]
Entries [ .Sablotron DOM | SDOM_Document ]

© 2002-2003 Ginger Alliance
revision 03-06-30
This page was generated by APIDOC