다음을 통해 공유


lastChild Property (Windows Embedded CE 6.0)

1/6/2010

Returns the last child node.

Script Syntax

var objXMLDOMNode = oXMLDOMNode.lastChild;

Remarks

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

None.

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

Object. Last child node. If there are no children, it returns Null.

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

HRESULT get_lastChild(
  IXMLDOMNode** lastChild
);

Remarks

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

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

Ee503515.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 lastChild is null.

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

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

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 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.

This property is read-only, and applies to the following objects and interfaces:

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

See Also

Reference

XML DOM Properties

Concepts

nodeType Property