IsXmlRoot()
Determines whether a function parameter is the root element of an Extended Markup language (XML) document object.
IsXmlRoot( value=any );
Returns: Boolean
Examples
<cfxml variable="xmlobject">
<office>
<employee>
<emp_name>lucee_dev</emp_name>
<emp_no>121</emp_no>
</employee>
</office>
</cfxml>
<cfdump var="#IsXmlroot(xmlobject.office)#" />
See also
- Decision logic
- XML
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)