User Guide

Table Of Contents
848 Chapter 35: Using XML and WDDX
The document object structure
At the top level, the XML document object has the following three entries:
The element structure
Each XML element has the following entries:
Entry name Type Description
XmlRoot Element The root element of the document.
XmlComment String A string made of the concatenation of all comments on the
document, that is, comments in the document prologue and epilog.
This string does not include comments inside document elements.
XmlDocType XmlNode The DocType attribute of the document. This entry only exists if the
document specifies a DocType. This value is read-only; you cannot
set it after the document object has been created
This entry does not appear when
cfdump displays an XML element
structure.
Entry name Type Description
XmlName String The name of the element; includes the namesapce prefix.
XmlNsPrefix String The prefix of the namespace.
XmlNsURI String The URI of the namespace.
XmlText or
XmlCdata
String A string made of the concatenation of all text and CData text in the
element, but not inside any child elements. When you assign a
value to the XmlCdata element, ColdFusion puts the text inside a
CDATA information item. When you retrieve information from
document object, these element names return identical values.
XmlComment String A string made of the concatenation of all comments inside the
XML element, but not inside any child elements.
XmlAttributes Structure All of this element’s attributes, as name-value pairs.
XmlChildren Array All this element’s children elements.
XmlParent XmlNode The parent DOM node of this element.
This entry does not appear when
cfdump displays an XML element
structure.
XmlNodes Array An array of all the XmlNode DOM nodes contained in this element.
This entry does not appear when
cfdump displays an XML element
structure.