Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Contains a node list containing the children (for nodes that can have children).
Syntax
objDOMNodeList = oDOMNode.childNodes
Remarks
Object. The property is read-only. Note that an IDOMNodeList object is returned even if there are no children of the node. In such a case, the length of the list will be set to zero. For information about valid child node types for each node, see the DOMNodeType enumeration.
This value depends on the value of the nodeType property:
- NODE_ATTRIBUTE, NODE_DOCUMENT, NODE_DOCUMENT_FRAGMENT, NODE_ELEMENT, NODE_ENTITY, NODE_ENTITY_REFERENCE
- Returns an IDOMNodeList that contains a list of all child nodes for the specified node.
- NODE_CDATA_SECTION, NODE_COMMENT, NODE_NOTATION, NODE_PROCESSING_INSTRUCTION, NODE_TEXT
- Returns an IDOMNodeList with a length of zero. These node types cannot have children.
- NODE_DOCUMENT_TYPE
- Returns an IDOMNodeList that contains a list of all child nodes for the IDOMDocumentType node. The node list for the document type node can contain entities and notations.
Applies To
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.