Delete element Version 4 (Net)
Action group: XML
Description
Deletes an element from an open context
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
XML context | XML-контекст | Robin.XML | XML context | Yes |
XPath | Path to XML-element in DOM model | Robin.String | Yes |
Special conditions of use
None.
Example of use
Task
There is an XML document Text.xml, it is necessary to remove the PRICE attribute from the BOOK element. Save a copy of the modified XML file to the desktop.
Solution
Use the actions "Load XML", "Delete element", "Save to file".
Example of use
- Assemble a robot scheme consisting of actions:
- Set the "Load XML" action parameter.
- Set the parameters of the "Delete element" action.
- Set the parameters of the "Save to file" action.
- Click on the "Start" button in the top panel.
Result
The program robot completed successfully. The required PRICE attribute has been deleted.
The required PRICE attribute has been removed from the XML document Copy of the file with change.xml
Обзор
Инструменты контента