property Nodes.Item (Index as Variant) as Node
Returns a specific node of the Nodes collection.

TypeDescription
Index as Variant A string expression that indicates the key of the node being searched, or a long expression that indicates the index of node being accessed.
Node A Node object being accessed.
Use the Item property to access a Node object giving its index or its key. The Count property gets the number of nodes in the collection. Use the ItemByPosition property to enumerate the root nodes as they are displayed. The Name property indicates the name of the node, where the Value property specifies the node's value. The FirstNode property specifies the first child node. Use the NextNode property to specify the next child node.

The following sample shows how to enumerate the nodes in the collection:

Dim n As EXMLGRIDLibCtl.Node
For Each n In XMLGrid1.Nodes
    Debug.Print n.Key
Next

or

Dim i As Long
With XMLGrid1.Nodes
    For i = 0 To .Count - 1
        Debug.Print .Item(i).Key
    Next
End With

The following sample enumerates all visible nodes in the control:

With XMLGrid1
    Dim n As EXMLGRIDLibCtl.Node, i As Long
    i = 0
    Set n = .NodeByPosition(i)
    While Not n Is Nothing
        Debug.Print n.Name
        i = i + 1
        Set n = .NodeByPosition(i)
    Wend
End With