hasChildNodes Method (Windows CE 5.0)

Send Feedback

Returns True if this node has children.

[Script]

Script Syntax

boolValue = oXMLDOMNode.hasChildNodes();

Script Parameters

None.

Script Return Value

Boolean. Returns True if this node has children.

[C/C++]

C/C++ Syntax

HRESULT hasChildNodes(VARIANT_BOOL* hasChild);

C/C++ Parameters

  • hasChild
    [out, retval] True is returned if this node has children.

C/C++ Return Values

  • S_OK
    Value returned if successful.
  • S_FALSE
    Value returned when there are no children.
  • E_INVALIDARG
    Value returned if hasChild is Null.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.

General Remarks

This method offers a fast way to determine whether a node has children. It always returns False for nodes that, by definition, cannot have children: the IXMLDOMCDATASection, IXMLDOMComment, IXMLDOMNotation, IXMLDOMProcessingInstruction, and IXMLDOMText nodes.

This method applies to the following objects and interfaces:

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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.