MACROMEDIA COLFUSION MX 7-CFML Reference page 698

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

IsXmlDoc
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
Decision
functions,
Function syntax
IsXmlDoc(value)
See also
,
IsXML
IsXmlAttribute
"Using XML and WDDX" in ColdFusion MX Developer's Guide
History
ColdFusion MX: Added this function.
Parameters
Parameter
value
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>
698
Chapter 3: ColdFusion Functions
XML functions
,
,
IsXmlElem
Description
Name of an XML document object
,
IsXmlNode
IsXmlRoot
,
; Chapter 35,
XmlValidate

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents