Save to file Version 4 (Net)
Action group: XML
Description
Saves the open context to an XML file
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
XML context | XML context to be saved | Robin.XML | XML context | Yes |
File name | Name of file without extension | Robin.String | Yes | |
Save to folder | Folder for saving file | Robin.FolderPath | C:\doc\img | Yes |
Results | ||||
Result | Path to saved XML-file | Robin.FilePath |
Special conditions of use
The action can only work with a context of correct structure (there must be a root element, correct fill syntax, etc.).
I.e. an empty context cannot be saved to a correct xml file.
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".
Implementation
- 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. XML is saved to the desktop.
Required PRICE attribute removed from XML document Copy of file with change.xml
Обзор
Инструменты контента