User Guide

Table Of Contents
ColdFusion XML tag and functions 851
XmlValidate(xmlDoc[,
validator])
Uses a Document Type Definition (DTD) or XML Schema to
validate an XML text document (in a string or file) or an XML
document object. The validator can be a DTD or Schema. If you
omit the
validator parameter, the document must specify a DTD or
schema. For more information on using the
XmlValidate function,
see “Validating XML documents” on page 868
XmlChildPos
(element,
elementName, position)
Returns the position (index) in an XmlChildren array of the Nth child
with the specified element name. For example,
XmlChildPos(mydoc.employee, "name", 2) returns the position in
mydoc.employee.XmlChildren of the mydoc.employee.name[2]
element. This index can be used in the
ArrayInsertAt and
ArrayDeleteAt functions.
For more information on using the
XmlChildPos function, see
“Determining the position of a child element with a common name”
on page 862, “Adding an element” on page 863, and “Deleting
elements” on page 865.
XmlGetNodeType
(xmlNode)
Returns a string identifying the type of an XML document object
node returned by the
XmlSearch function or in an element’s
XmlNodes array.
IsWDDX
(String)
Determines whether a string is a well-formed WDDX packet.
IsXML
(String)
Determines whether a string is well-formed XML text.
IsXmlAttribute
(variable)
Determines whether the function parameter is an XML Document
Object Model (DOM) attribute node.
IsXmlDoc
(objectName)
Returns True if the function argument is an XML document object.
IsXmlElem
(elementName)
Returns True if the function argument is an XML document object
element.
IsXmlNode
(variable)
Determines whether the function parameter is an XML document
object node.
IsXmlRoot
(elementName)
Returns True if the function argument is the root element of an XML
document object.
ToString
(objectName)
Converts an XML document object to a string representation.
XmlFormat
(string)
Escapes special XML characters in a string so that the string can be
used as text in XML.
Tag or function Description