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 Function Reference
Function XMLCHILDPOS
Example
xmlchildpos(xml node,string childName,number index):number
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
node | xml | Yes | XML element within which to search. |
childName | string | Yes | XML child element for which to search |
index | number | Yes |