isXMLDoc

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

isXMLDoc(value) → returns boolean

Argument Reference

value any
Required

XML document

Examples
Sample code invoking the isXMLDoc 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(isXMLDoc(example));
</cfscript>

Expected Result: YES

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub