Name
IsXmlRoot
Synopsis
IsXmlRoot(value
)
Returns true
if value is the
root element of an XML document object. Example:
<cfhttp URL="http://www.macromedia.com/devnet/resources/macromedia_resources.xml" method="Get"> <cfset DesDev = XmlParse(cfhttp.FileContent)> <cfoutput> Is DesDev.macromedia_resources.resource.title the XML root? #IsXmlRoot(DesDev.macromedia_resources.resource.title)# </cfoutput>
To see the structure of the XML document object, use the
cfdump
tag.
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.