User Guide

Table Of Contents
The XML document object 847
XML document structures
An XML document object is a structure that contains a set of nested XML element structures.
The following figure shows a section of the
cfdump tag output for the document object for the
XML in A simple XML document” on page 845. This figure shows the long version of the
dump, which provides complete details about the document object. Initially, ColdFusion displays
a short version, with basic information. Click the dump header to change between short, long,
and collapsed versions of the dump.
The following code displays this output. It assumes that you save the code in a file under your
web root, such as C:\Inetpub\wwwroot\testdocs\employeesimple.xml
<cffile action="read" file="C:\Inetpub\wwwroot\testdocs\employeesimple.xml"
variable="xmldoc">
<cfset mydoc = XmlParse(xmldoc)>
<cfdump var="#mydoc#">