xmlChildPos

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.

xmlChildPos(elem, childname, n) → returns numeric

Argument Reference

elem xml
Required

XML element within which to search

childname string
Required

XML child element for which to search

n numeric
Required

Index of XML child element for which to search

Examples
Sample code invoking the xmlChildPos function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub