IsXmlRoot()

Determines whether a function parameter is the root element of an Extended Markup language (XML) document object.

IsXmlRoot( value=any );

Returns: Boolean

Argument Description
value
any, required

Name of an XML document object

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