Action group: XML
The action adds an element to the open context
Parameter | Description |
---|---|
Context | XML-context. |
XPath | Path to the element in relation to which the new one will be created. |
Tag name | Tag name of the element to be created. |
Value | Content for the element to be created. |
Attribute | A dictionary of parameters to be added to the element and their values. |
Adding mode | Determines where the new element will be added relative to the anchor element. The default is "Append child". For an empty context, the parameter is ignored because the element will be added as the root element. |
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context of the XML- document | Context of the XML-document | Robin.XML | XML context | Yes |
XPath | The path to the anchor XML-element, relative to which the new one will be created | Robin.String | No | |
Tag name | TagName for a new XML-element | Robin.String | Yes | |
Value | Content of the new XML-element | Robin.String | No | |
Attributes | Dictionary with attributes and their values for new XML-element | Robin.Dictionary | No | |
Adding mode | Determine position for new XML-element relative to the anchor XML-element. The default is Append Child. For empty context, the attribute is ignored as the element will be added as root | Robin.String | No |
None.
Create a new XML-document with a root element INVENTORY and a nested BOOK element that has attributes TITLE="The Adventures of Huckleberry Finn" and AUTHOR="Mark Twain". Save the resulting XML to the workspace.
Use the "Create new", "Add element", "Save to file" actions.
The program robot completed successfully.
The created XML is saved to the workspace.