Share via


firstChild Property (Windows CE 5.0)

Send Feedback

Contains the first child of the node.

[Script]

Script Syntax

var objXMLDOMNode=oXMLDOMNode.firstChild;

Script Parameters

None.

Script Return Value

Object. Returns the first child node. If there are no such children, returns Null.

[C/C++]

C/C++ Syntax

HRESULT get_firstChild(IXMLDOMNode** firstChild);

C/C++ Parameters

  • firstChild
    [out, retval] First child node. If there are no such children, it returns Null.

C/C++ Return Values

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

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.

General Remarks

This value depends on the value of the nodeType property.

Value Description
NODE_ATTRIBUTE, NODE_DOCUMENT, NODE_DOCUMENT_FRAGMENT, NODE_DOCUMENT_TYPE, NODE_ELEMENT, NODE_ENTITY, NODE_ENTITY_REFERENCE Returns the first 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.

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, IXTLRuntime

See Also

nodeType Property

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.