• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

IsXmlDoc

Synopsis

                   IsXmlDoc(value)

Returns true if value is a ColdFusion XML document object. XML document objects are created using the XmlParse( ) function or the cfxml tag. The following example grabs an XML news feed from macromedia.com, uses XmlParse( ), then reports whether the result is an XML document object:

<cfhttp URL="http://www.macromedia.com/devnet/resources/macromedia_resources.xml"
        method="Get">
   
<cfset DesDev = XmlParse(cfhttp.FileContent)>
   
Is the feed from Macromedia.com an XML document object? 
<cfoutput>#IsXMLDoc(DesDev)#</cfoutput>

To see the structure of the XML document object, use the cfdump tag.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint