CHILD-NUM attribute

Returns the relative number assigned to this XML node among its siblings. XML nodes that have the same parent are called siblings, and are numbered from 1 to the number of siblings.

Data type: INTEGER

Access: Read-only

Applies to: X-noderef object handle

The Unknown value (?) is returned if the node reference does not refer to an element node, or if the node is an XML document node.

The following example demonstrates the use of the CHILD-NUM attribute:

my-index = hNoderef:CHILD-NUM.