Xmlchildpos - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

XmlChildPos

Description
Gets the position of a child element within an XML document object.
Returns
The position, in an XmlChildren array, of the Nth child that has the specified name.
Category
Extensibility
functions,
Function syntax
XmlChildPos(elem, childName, N)
See also
cfxml, IsXmlDoc, XmlChildPos, XmlFormat, XmlNew, XmlParse, XmlSearch,
XmlTransform
History
ColdFusion MX: Added this function.
Parameters
Parameter
elem
childName
N
Usage
The returned index can be used in the
Example
This example searches the XML document object mydoc.employee.XmlChildren for the
mydoc.employee.name[2] element:
XmlChildPos(mydoc.employee, "name", 2)
XML functions
Description
XML element within which to search
XML child element for which to search
Index of XMLchild element for which to search
and
ArrayInsertAt
ArrayDeleteAt
functions.
XmlChildPos
739

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents