isXMLElem

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

isXMLElem(value) → returns boolean

isXMLElem Argument Reference

value any
Required

XML Element

Examples sample code invoking the isXMLElem function

<cfxml variable="example">
	<coldfusionengines>
		<engine>
			<name>Adobe ColdFusion</name>
		</engine>
		<engine>
			<name>Lucee</name>
		</engine>
		<engine>
			<name>Railo</name>
		</engine>
		<engine>
			<name>Open BlueDragon</name>
		</engine>
	</coldfusionengines>
</cfxml>
<cfscript>
	writeOutput(isXMLElem(example.coldfusionengines));
</cfscript>

Expected Result: YES


Fork me on GitHub