MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual page 675

Developing coldfusion mx applications
Table of Contents

Advertisement

XML DOM node structure
The following table lists the contents of an XML DOM node structure:
Entry name
Type
XmlName
String
XmlType
String
XmlValue
String
Note: The
tag does not display XmlNode structures. If you try to dump an XmlNode structure,
cfdump
the
tag displays "Empty Structure".
cfdump
The following table lists the contents of the XmlName and XmlValue fields for each node type
that is valid in the XmlType entry. The node types correspond to the objects types in the XML
DOM hierarchy.
Node type
CDATA
COMMENT
ELEMENT
ENTITYREF
PI
(processing
instruction)
TEXT
ENTITY
NOTATION
DOCUMENT
FRAGMENT
DOCTYPE
Note: Although XML attributes are nodes on the DOM tree, ColdFusion does not expose them as
XML DOM node data structures. To view an element's attributes, use the element structure's
XMLAttributes structure.
The XML document object and all its elements are exposed as DOM node structures. For
example, you can use the following variable names to reference nodes in the DOM tree created
from the XML example in
mydoc.XmlName
mydoc.XmlValue
mydoc.XmlRoot.XmlName
mydoc.employee.XmlType
mydoc.employee.XmlNodes[1].XmlType
Description
The node name. For nodes such as Element or Attribute, the node
name is the element or attribute name.
The node XML DOM type, such as Element or Text.
The node value. This entry is used only for Attribute, CDATA,
Comment, and Text type nodes.
XmlName
#cdata-section
#comment
Tag name
Name of entity referenced
Target entire content excluding the
target
#text
Entity name
Notation name
#document
#document-fragment
Document type name
"A simple XML document" on page
xmlValue
Content of the CDATA section
Content of the comment
Empty string
Empty string
Empty string
Content of the text node
Empty string
Empty string
Empty string
Empty string
Empty string
671:
The XML document object
675

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion mx

Table of Contents