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 |
---|---|
Determines the number of child elements in an element, that is, the number of elements in an element's |
|
Determines whether an element has any elements in its |
|
Determines the number of attributes in an element's |
|
Determines whether an element has any attributes in its Returns True if the specified structure, including the XML document object or an element, exists and is empty. |
|
Gets an array or list with the names of all of the attributes in an element's |
|
Adds a new element at a specific location in an element's |
|
Adds a new element at the end or beginning of an element's |
|
Swaps the children in the |
|
Sets a range of entries in an |
|
Deletes a specific element from an element's |
|
Deletes all child elements from an element's |
|
Deletes a selected attribute from an element's Deletes all children with a specific element name from an element's Deletes all attributes of an element. Deletes all children of an element. Deletes a selected property value. |
|
Deletes all attributes from an element's |
|
Copies an XML document object, element, or node structure. |
|
Returns True for the |
|
Returns False for XML document objects, elements, and nodes. Returns True for |
|
Returns the specified structure, including XML document objects, elements, nodes, and |
|
Appends a document fragment XML document object to another XML document object. |
|
Adds a new entry to an |
|
Sets or replaces the value of a document object property such as |
Note: Array and structure functions not in the preceding or table or the table in the next section, do not work with XML document objects, XML elements, or XML node structures.