Gets the position of a child element within an XML document
object.
The position, in an XmlChildren array, of the Nth child that
has the specified name.
Lucee object methods reference
Object Method Xml.childPos
Xml.childPos(string childName,number index):number
Category
XML
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
childName | string | Yes | XML child element for which to search |
index | number | Yes |