Script Functions for XML Elements
XML (Extensible Markup Language) contains information wrapped in tags to store and transport data. For example, in Automic Automation, you can create XML documents by exporting object data. The following script functions can handle, read or modify values stored in XML documents. The source of an XML document in Automic Automation can be Structured Documentation, the report of an SAP job, or an XML string.
Note: The XML parser used for the XML script functions supports XML values with UTF-8 characters. It supports UTF-8 for tag names, attribute names, and their values.
Example:
<xml_tag1>
<xml_tag2 xml_attribute1="attribute-value">any xml value</xml_tag2>
</xml_tag1>
-
Moves an XML element before another element
-
Adds a new sub-element to an XML element
-
Duplicates an XML element and attaches it to another element
-
Attaches an existing XML element to another element
-
Structures and formats an XML document
-
Duplicates and renames an XML element
-
Closes an XML document
-
Removes a specific XML element
-
Retrieves the value of an element's attribute
-
Counts the sub-elements of an element
-
Identifies the first sub-element of an element
-
Identifies the last sub-element of an element
-
Identifies the succeeding element
-
Retrieves the name of an element
-
Retrieves the text of an element
-
Creates a new XML element and inserts the new element before another element
-
Opens an XML document for processing
-
Writes the XML document in a file
-
Removes all the sub-elements of an XML element
-
Identifies an element
-
Adds a new attribute to an XML element or changes an existing attribute
-
Changes or sets the value of an XML element
-
Returns the XML of a specific element as text