Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

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

Script Syntax

Copy Code
var objXMLDOMNode = oXMLDOMNode.nextSibling;

Remarks

Script Parameters

None.

Script Return Value

Object. It returns the right sibling of this node.

C/C++ Syntax

Copy Code
HRESULT get_nextSibling(
  IXMLDOMNode** 
nextSibling
);

Remarks

C/C++ Parameters

nextSibling

[out, retval] Right sibling of this node.

C/C++ Return Values

S_OK

Value returned if successful.

S_FALSE

Value returned when there is no next sibling.

E_INVALIDARG

Value returned if nextSiblingis Null.

Requirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

This value depends on the value of the nodeTypeproperty.

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