The XMLDOMNode Object

The XMLDOMNode Object

The Microsoft XMLDOMNode object extends the core XML DOM node interface by adding support for data types, namespaces, DTDs, and schemas as implemented in Internet Explorer. We'll use this object a good deal as we traverse document trees. Here is the base set of properties for this object. As before, those items marked with an asterisk (*) represent a Microsoft extension to the W3C DOM:

  • attributes The list of attributes for this node. Read-only.

  • baseName * The base name for the name qualified with the namespace. Read-only.

  • childNodes A node list containing the child nodes of the current node. Read-only.

  • dataType * The data type for this node. Read/write.

  • definition * The definition of the node in the DTD or schema. Read-only.

  • firstChild The first child of the current node. Read-only.

  • given * Indication of whether a node is explicitly given or derived from a default value. Read-only.

  • lastChild The last child of the current node. Read-only.

  • namespaceURI * The URI for the namespace. Read-only.

  • nextSibling The next sibling of this node. Read-only.

  • nodeName Property that holds a qualified name for an element, attribute, or entity reference, or a string for other node types. Read-only.

  • nodeType The XML DOM node type. Read-only.

  • nodeTypedValue * The node's value. Read/write.

  • nodeTypeString * The node type in string form. Read-only.

  • nodeValue The text associated with the node. Read/write.

  • ownerDocument The root of the document. Read-only.

  • parentNode The parent node. Read-only.

  • parsed * True if this node and all descendants have been parsed; false otherwise . Read-only.

  • prefix * The namespace prefix. Read-only.

  • previousSibling The previous sibling of this node. Read-only.

  • text * The text content of the node and its subtrees. Read/write.

  • xml * The XML representation of the node and all its descendants. Read-only.

Here is the base set of methods for this object:

  • appendChild Appends a new child as the last child of this node

  • cloneNode Creates a new node that is a copy of this node

  • hasChildNodes Is true if this node has children

  • insertBefore Inserts a child node before the given node

  • removeChild Removes the given child node

  • replaceChild Replaces the given child node with the given new child node

  • selectNodes * Applies the given pattern-matching operation to this node's context, returning a list of matching nodes

  • selectSingleNode * Applies the given pattern-matching operation to this node's context, returning the first matching node

  • transformNode * Transforms this node and its children using the given XSL stylesheet

  • transformNodeToObject * Transforms this node and its children using the given XSL stylesheet, returning the result as an object

This object has no events.



Real World XML
Real World XML (2nd Edition)
ISBN: 0735712867
EAN: 2147483647
Year: 2005
Pages: 440
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net