Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 1068

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Using Web Elements and External Objects
Tag or function
<cfxml variable="objectName"
[caseSensitive="Boolean"]>
XmlParse (XMLText
[[, caseSensitive],
validator])
XmlNew([caseSensitive])
XmlElemNew(objectName{,
namespaceURI],
elementName)
XmlTransform(XMLVar,
XSLTStringVar[,
parameters])
XmlSearch(objectName,
XPathExpression)
XmlValidate(xmlDoc[,
validator])
XmlChildPos(element,
elementName, position)
XmlGetNodeType(xmlNode)
IsWDDX(String)
IsXML(String)
Description
Creates a ColdFusion XML document object consisting of the markup in the tag body. The tag can
include XML and CFML tags. ColdFusion processes all CFML in the tag body before converting the
resulting text to an XML document object.
If you specify the
CaseSensitive="True"
in the document is meaningful. The default value is
For more information on using the
cfxml
tag" on page 1067.
Converts an XML document in a file or a string variable into an XML document object, and optionally
validates the document against a DTD or schema.
If you specify the optional second argument as
in the document is meaningful. The default value is
For more information on using the XmlParse function, see
existing
XML" on page 1068.
Returns an empty XML document object.
If you specify the optional argument as
document is meaningful. The default value is
For more information on using the XmlNew function, see
the XmlNew
function" on page 1068.
Returns an XML document object element with the specified name, optionally belonging to the
specified namespace. You can omit the namespaceURI parameter and use only a namespace prefix
if the prefix is defined elsewhere in the object.
For more information on using theXmlElemNew function, see
Applies an Extensible Stylesheet Language Transformation (XSLT) to an XML document. The
document can be represented as a string variable or as an XML document object. The function
returns the resulting XML document as a string.
For more information on using theXmlTransform function, see
on page 1079.
Uses an XPath expression to search an XML document object and returns an array of XML elements
that match the search criteria.
For more information on using the XmlSearch function, see
page 1080.
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
parameter, the document must specify a DTD or schema. For more information on
validator
using the XmlValidate function, see
Returns the position (index) in an XmlChildren array of the Nth child with the specified element
name. For example,
XmlChildPos(mydoc.employee, "name", 2)
mydoc.employee.XmlChildren of the mydoc.employee.name[2] element. This index can be used in
the
ArrayInsertAt
and
ArrayDeleteAt
For more information on using theXmlChildPos function, see
element with a common
name" on page 1073,
elements" on page 1075.
Returns a string identifying the type of an XML document object node returned by the function or
in an element's XmlNodes array.
Determines whether a string is a well-formed WDDX packet.
Determines whether a string is well-formed XML text.
Last updated 1/20/2012
attribute, the case of names of elements and attributes
.
False
cfxml
tag, see
"Creating an XML document object using the
, the case of names of elements and attributes
True
.
False
"Creating an XML document object from
, the case of names of elements and attributes in the
True
.
False
"Creating an XML document object using
"Adding an
"Transforming documents with
"Extracting data with
"Validating XML
documents" on page 1079
functions.
"Determining the position of a child
"Adding an
element" on page 1073, and
1063
element" on page 1073.
XSLT"
XPath" on
returns the position in
"Deleting

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents