Automation Anywhere - XML Command
Automation Anywhere |
XML Command
This command is use to capture data that has XML formatting.Sub-commands
- Start XML Session - This command is use to specify session name and XML file path to start work on it.
- End XML Session - This command is use to close an XML session.
- Insert Node - This command is use to insert a node with attributes and name spaces you specify.
- Delete Node/Attribute - This command is use to delete a node or attribute from the XML file.
- Update Node(s) - This command is use to update nodes in a session at the position that is specified for the XPath expression.
- Validate XML Document - This command is use to validate session data using XML schema files (.xsd) or internal Document Type Definitions (DTDs).
- Get Node(s) - This command is use to retrieve the values of nodes or attributes in the session data.
- Save Session Data - This command is use to save the session data to a variable.
- Execute XPath Function - This command is use to execute an XPath function and store the results in a variable.
Components of Start XML Session:
- Session Name - Specify the name of the session.
- Data Source -
Components of Insert Node:
- Session Name - Specify the name of the session.
- XPath Expression - Location of the Node where you want to insert node.
- Node Name - Name of the Node.
- Node Value - Value of inserted node.
- If Node name is present -
- Insert It Anyways - Insert a duplicate node.
- Skip It - Skip the newly inserted node.
- Overwrite It - Overwrite the value of the node.
- Insert Node Location -
- Beginning of child nodes.
- End of child nodes.
- Before specific child node. If you select this option then need to specify the child node in "Specified child node name" field.
- After specific child node. If you select this option then need to specify the child node in "Specified child node name" field.
- Default Namespace - Specify the namespace of inserted node.
Insert Node
Note - In advanced view, user able to add/update/delete Attributes and Namespace.
Components of Delete Node/Attribute.
- Session Name - Specify the name of the session.
- XPath Expression - Location of the node.
- Attribute - Name of the Attribute.
Delete Node
Components of Update Node(s):
- Session Name - Specify the name of the session.
- XPath Expression - Location of the node.
- New Value - Value of Node.
- Update Attribute - This option is use to update the attribute of the specified node.
Update Node(s)
Components of Validate XML Document:
- Session Name - Specify the name of the session.
- Select Validation Type -
- XML Schema(.xsd) - Add an schema file to validate XML Document.
- Internal DTD - Select this option to validate XML Document from DTD available in AA.
- Well Formed - Select this option to check whether XML document is Well Formed or not.
- Assign Output - Assign the output of the validation step (VALID/INVALID) in a variable. If an error occurs during validation, it is stored in the system variables named: $Error Line Number$ and $Error Description$.
Validate XML Document
Components of Get Node(s):
- Get Node(s) -
- Get Single Node - Retrieves the value of a single node or attribute from the session data, at the position specified in the XPath expression. The value is assigned to a variable.
- Multiple Nodes - Retrieves values from multiple nodes in the session data, using Text value/XPath expression/Specified attribute name, based on the specified XPath expression.
Get Node(s)
Components of Save Session Data:
- Session Name - Specify the name of the session.
- Assign XML Data - Assign XML data into the variable.
- Write XML Data - Select this option and specify the filename with path, if you want to save XML data into a file.
Save Session Data
Components of Execute XPath Function:
- Session Name - Specify the name of the session.
- XPath Expression - Location of the Node.
Execute XPath Function
1 comment:
Best description ever..if you want to know about bit coin and getnode you can come in this link Getnode
Post a Comment