Partager via


hasChildNodes Method (Windows Embedded CE 6.0)

1/6/2010

Returns True if this node has children.

Script Syntax

            boolValue = oXMLDOMNode.hasChildNodes();

Remarks

Ee503415.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee503415.collapse(en-US,WinEmbedded.60).gifScript Return Value

Boolean. Returns True if this node has children.

Ee503415.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT hasChildNodes(
  VARIANT_BOOL* hasChild
);

Remarks

Ee503415.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

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

Ee503415.collapse(en-US,WinEmbedded.60).gifC/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.

Ee503415.collapse(en-US,WinEmbedded.60).gifRequirements

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

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.

See Also

Reference

XML DOM Methods