All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

XMLParser Interface CATIDOMNodeList

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---CATIDOMNodeList
 

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATIDOMNodeList

Interface providing the abstraction of an ordered collection of nodes.
CATIDOMNodeLists are created by CATIDOMDocument.GetElementsByTagName, CATIDOMNode.GetChildNodes.

The items in the CATIDOMNodeList are accessible via an integral index, starting from 0. CATIDOMNodeLists are "live", in that any changes to the document tree are immediately reflected in any CATIDOMNodeLists that may have been created for that tree.

See also:
CATIDOMDocument.GetElementsByTagName, CATIDOMNode.GetChildNodes


Method Index


o GetLength(unsigned int&)
Retrieves the number of nodes in the list.
o Item(unsigned int,CATIDOMNode_var&)
Retrieves the indexth item in the collection.

Methods


o GetLength
public virtual HRESULT GetLength(unsigned int& oLength) = 0
Retrieves the number of nodes in the list. The range of valid child node indices is 0 to oLength - 1 inclusive.
Parameters:
oLength
The retrieved number of nodes in the list.
o Item
public virtual HRESULT Item(unsigned int iIndex,
CATIDOMNode_var& oItem) = 0
Retrieves the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, oItem is set to NULL_var.
Parameters:
iIndex
Index into the collection.
oItem
The node at the indexth position in the
CATIDOMNodeList, or NULL_var if that is not a valid index.

This object is included in the file: CATIDOMNodeList.h
If needed, your Imakefile.mk should include the module: CATXMLParserItf

Copyright © 2003, Dassault Systèmes. All rights reserved.