Whatever message this page gives is out now! Go check it out!

IsXmlDoc

Last update:
May 18, 2026

Description

Determines whether the function parameter is a ColdFusion XML document object.

Returns

True, if the function argument is an XML document object; False, otherwise.

Category

Function syntax

IsXmlDoc(value)

See also

IsXMLIsXmlAttributeIsXmlElemIsXmlNodeIsXmlRootXmlValidateUsing XML and WDDX in the Developing ColdFusion Applications

History

ColdFusion MX: Added this function.

Parameters

Parameter
Description
value
Name of an XML document object

Example

The following example creates an XML Document object and a Java object and tests whether they are XML document objects:
<!--- Create an XML document object ---> 
<cfxml variable="xmlobject"> 
<order id="4323251"> 
<customer firstname="Philip" lastname="Cramer" accountNum="21"/> 
<items> 
<item id="43"> 
<quantity>1</quantity> 
<unitprice>15.95</unitprice> 
</item> 
</items> 
</order> 
</cfxml> 

<!--- Create a Java object ---> 
<cfobject type="JAVA" action="create" class="java.lang.Error" name="javaobject" > 

<!--- Test the objects ---> 
<cfoutput> 
Is xmlobject an XML document object? #IsXmlDoc(xmlobject)#<br> 
Is javaobject an XML document object? #IsXmlDoc(javaobject)#<br> 
</cfoutput>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page