Whatever message this page gives is out now! Go check it out!
<employee> <!-- A list of employees --> <name EmpType="Regular"> <first>Almanzo</first> <last>Wilder</last> </name> <name EmpType="Contract"> <first>Laura</first> <last>Ingalls</last> </name> </employee> |
variable="xmldoc"> <cfset mydoc = XmlParse(xmldoc)> <cfdump var="#mydoc#"> |
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 createdThis entry does not appear when the cfdump tag 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 orXmlCdata | 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 places 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 the cfdump tag displays an XML element structure. |
XmlNodes | Array | An array of all the XmlNode DOM nodes contained in this element.This entry does not appear the cfdump tag when displays an XML element structure. |
Entry name | Type | Description |
XmlName | String | The node name. For nodes such as Element or Attribute, the node name is the element or attribute name. |
XmlType | String | The node XML DOM type, such as Element or Text. |
XmlValue | String | The node value. This entry is used only for Attribute, CDATA, Comment, and Text type nodes. |
Node type | XmlName | xmlValue |
CDATA | #cdata-section | Content of the CDATA section |
COMMENT | #comment | Content of the comment |
ELEMENT | Tag name | Empty string |
ENTITYREF | Name of entity referenced | Empty string |
PI (processing instruction) | Target entire content excluding the target | Empty string |
TEXT | #text | Content of the text node |
ENTITY | Entity name | Empty string |
NOTATION | Notation name | Empty string |
DOCUMENT | #document | Empty string |
FRAGMENT | #document-fragment | Empty string |
DOCTYPE | Document type name | Empty string |
mydoc.XmlValue mydoc.XmlRoot.XmlName mydoc.employee.XmlType mydoc.employee.XmlNodes[1].XmlType |