Partager via


nextSibling Property

Contains the next sibling of the node in the parent's child list.

var objXMLDOMNode = oXMLDOMNode.nextSibling;

HRESULT get_nextSibling(
  IXMLDOMNode** nextSibling
);

General Remarks

This value depends on the value of the nodeType property.

Value Description
NODE_ATTRIBUTE, NODE_DOCUMENT, NODE_DOCUMENT_FRAGMENT Always returns Null; these node types do not appear as children of any other nodes.
NODE_CDATA_SECTION, NODE_COMMENT, NODE_DOCUMENT_TYPE, NODE_ELEMENT, NODE_ENTITY, NODE_ENTITY_REFERENCE, NODE_NOTATION, NODE_PROCESSING_INSTRUCTION, NODE_TEXT Returns the node immediately following this node in the list of children of this node's parent. If no such node exists, returns Null.

This property is read-only, and applies to the following objects and interfaces:

IXMLDOMAttribute, IXMLDOMCDATASection, IXMLDOMCharacterData, IXMLDOMComment, DOMDocument, IXMLDOMDocumentFragment, IXMLDOMDocumentType, IXMLDOMElement, IXMLDOMEntity, IXMLDOMEntityReference, IXMLDOMNode, IXMLDOMNotation, IXMLDOMProcessingInstruction, IXMLDOMText, and IXTLRuntime

See Also

nodeType property

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.