Click to return to the XML (Extensible Markup Language) home page    
IXMLDOMNode::insertBefore...     IXMLDOMNode::namespaceURI...     IXMLDOMNode Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXMLDOMNode::get_lastChild Method


Returns the last child node.

Visual Basic Syntax

Set objXMLDOMNode = oXMLDOMNode.lastChild

C/C++ Syntax

HRESULT get_lastChild(
    IXMLDOMNode **lastChild);

Parameters

lastChild
[out] Last child node. If there are no children, it returns NULL.

C/C++ Return Values

S_OK
Value returned if successful.
S_FALSE
Value when returning null. 
E_INVALIDARG
Value returned if lastChild is null.

Remarks

This value depends on the value of the nodeType property.

NODE_ATTRIBUTE,
NODE_DOCUMENT,
NODE_DOCUMENT_FRAGMENT,
NODE_DOCUMENT_TYPE,
NODE_ELEMENT,
NODE_ENTITY,
NODE_ENTITY_REFERENCE
Returns the last child node. If there are no children, returns NULL.
NODE_CDATA_SECTION,
NODE_COMMENT,
NODE_NOTATION,
NODE_PROCESSING_INSTRUCTION,
NODE_TEXT
Returns NULL. These node types cannot have children.


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.