682
Chapter 31: Using XML and WDDX
Functions for XML object management
The following table lists the ColdFusion array and structure functions that you can use to manage
XML document objects and their functions, and describes their common uses. In several cases
you can use either an array function or a structure function for a purpose, such as for deleting all
of an element’s attributes or children.
Function
Use
ArrayLen
Determines the number of child elements in an element, that is, the number
of elements in an element’s
XmlChildren
array.
ArrayIsEmpty
Determines whether an element has any elements in its
XmlChildren
array.
StructCount
Determines the number of attributes in an element’s
XmlAttributes
structure.
StructIsEmpty
Determines whether an element has any attributes in its
XmlAttributes
structure.
Returns True if the specified structure, including the XML document object
or an element, exists and is empty.
StructKeyArray
StructKeyList
Gets an array or list with the names of all of the attributes in an element’s
XmlAttributes
structure. Returns the names of the children of an XML
element.
ArrayInsertAt
Adds a new element at a specific location in an element’s
XmlChildren
array.
ArrayAppend
ArrayPrepend
Adds a new element at the end or beginning of an element’s
XmlChildren
array.
ArraySwap
Swaps the children in the
XmlChildren
array at the specified position.
ArraySet
Sets a range of entries in an
XmlChildren
array to equal the contents of a
specified element structure. Each entry in the array range will be a copy of
the structure. Can be used to set a single element by specifying the same
index as the beginning and end of the range.
ArrayDeleteAt
Deletes a specific element from an element’s
XmlChildren
array.
ArrayClear
Deletes all child elements from an element’s
XmlChildren
array.
StructDelete
Deletes a selected attribute from an element’s
XMLAttributes
structure.
Deletes all children with a specific element name from an element’s
XmlChildren
array.
Deletes all attributes of an element.
Deletes all children of an element.
Deletes a selected property value.
StructClear
Deletes all attributes from an element’s
XMLAttributes
structure.
Duplicate
Copies an XML document object, element, or node structure.
IsArray
Returns True for the
XmlChildren
array. Returns false if you specify an
element name, such as mydoc.XmlRoot.name, even if there are multiple
name elements in XmlRoot.
IsStruct
Returns False for XML document objects, elements, and nodes. Returns
True for
XmlAttributes
structures.
StructGet
Returns the specified structure, including XML document objects,
elements, nodes, and
XmlAttributes
structures.
Содержание COLDFUSION MX 61-DEVELOPING COLDFUSION MX
Страница 1: ...Developing ColdFusion MX Applications...
Страница 22: ...22 Contents...
Страница 38: ......
Страница 52: ...52 Chapter 2 Elements of CFML...
Страница 162: ......
Страница 218: ...218 Chapter 10 Writing and Calling User Defined Functions...
Страница 250: ...250 Chapter 11 Building and Using ColdFusion Components...
Страница 264: ...264 Chapter 12 Building Custom CFXAPI Tags...
Страница 266: ......
Страница 314: ...314 Chapter 14 Handling Errors...
Страница 344: ...344 Chapter 15 Using Persistent Data and Locking...
Страница 349: ...About user security 349...
Страница 357: ...Security scenarios 357...
Страница 370: ...370 Chapter 16 Securing Applications...
Страница 388: ...388 Chapter 17 Developing Globalized Applications...
Страница 408: ...408 Chapter 18 Debugging and Troubleshooting Applications...
Страница 410: ......
Страница 426: ...426 Chapter 19 Introduction to Databases and SQL...
Страница 476: ...476 Chapter 22 Using Query of Queries...
Страница 534: ...534 Chapter 24 Building a Search Interface...
Страница 556: ...556 Chapter 25 Using Verity Search Expressions...
Страница 558: ......
Страница 582: ...582 Chapter 26 Retrieving and Formatting Data...
Страница 668: ......
Страница 734: ...734 Chapter 32 Using Web Services...
Страница 760: ...760 Chapter 33 Integrating J2EE and Java Elements in CFML Applications...
Страница 786: ...786 Chapter 34 Integrating COM and CORBA Objects in CFML Applications...
Страница 788: ......
Страница 806: ...806 Chapter 35 Sending and Receiving E Mail...