Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
This interface represents a single node in the document tree; it is the base interface for accessing data in the XML object model. IDOMNode represents the OLE Automation implementation of the Node interface as defined in the World Wide Web Consortium (W3C) DOM Core Specification.
IDOMNode Methods
appendChild Appends newChild as the last child of this node. attributes Contains the list of attributes for this node. childNodes Contains a node list containing the children (for nodes that can have children). cloneNode Creates a new node that is an exact clone of this node. firstChild Contains the first child of this node. hasChildNodes Returns true if this node has children. insertBefore Inserts a child node to the left of the specified node or at the end of the list. lastChild Returns the last child node. nextSibling Contains the next sibling of this node in the parent's child list. nodeName Contains the qualified name of the element, attribute, or entity reference, or a fixed string for other node types. nodeType Specifies the DOM node type, which determines valid values and whether the node can have child nodes. nodeValue Contains the text associated with the node; depends on the node type. ownerDocument Returns the root of the document that contains this node. parentNode Contains the parent node (for nodes that can have parents). previousSibling Contains the left sibling of this node. removeChild Removes the specified child node from the list of children and returns it. replaceChild Replaces the specified old child node with the supplied new child node in the set of children of this node, and returns the old child node.
Remarks
The XML Document Object Model (DOM) presents documents as a hierarchy of "node" objects that also implement other, more specialized interfaces. Some types of nodes can have child nodes of various types, and others are leaf nodes that have no child nodes below them in the document structure. For example, nodes of type NODE_TEXT do not have children, and trying to add children to such nodes causes an error.
Interface Information
Implementation Msxml.dll Inherits from IDispatch Header and IDL files Msxml.h, Dom.idl Minimum availability Internet Explorer 5 Beta Minimum operating systems Windows 95, Windows NT
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.