isXMLNode

Determines whether the function parameter is
an XML document object node.

isXMLNode(value) → returns boolean

isXMLNode Argument Reference

value any
Required

XML document object node.

Examples sample code invoking the isXMLNode 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(isXMLNode(example.coldfusionengines));
</cfscript>

Expected Result: YES


Fork me on GitHub