Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Contains the first child of this node.
Syntax
HRESULT get_firstChild( IDOMNode ** firstChild);
Parameters
- firstChild
- [out] First child node. If there are no such children, returns NULL.
Return Value
Returns S_OK if successful, or an error code otherwise.
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 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.
See Also
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.