Microsoft XML 2.5 SDK


 

IXMLDOMNode::get_previousSibling Method

[This is preliminary documentation and subject to change.]

Contains the left sibling of this node.

Visual Basic Syntax

Set objXMLDOMNode = oXMLDOMNode.previousSibling

C/C++ Syntax

HRESULT get_previousSibling(

    IXMLDOMNode **previousSibling);

Parameters

previousSibling

[out]
Left sibling of this node.

C/C++ Return Values

S_OK

Value returned if successful.

S_FALSE

Value when returning null.

E_INVALIDARG

Value returned if previousSibling is null.

Remarks

This value depends on the value of the nodeType property.

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 preceding this node in this node's parent's child list. Returns null if no such node exists.