Save to file Version 4 (Net)

Action group: XML


Description

Saves the open context to an XML file

Action icon


Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
XML contextXML context to be savedRobin.XMLXML contextYes
File nameName of file without extensionRobin.String
Yes
Save to folderFolder for saving fileRobin.FolderPathC:\doc\imgYes
Results
ResultPath to saved XML-fileRobin.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

  1. Assemble a robot scheme consisting of actions:

  2. Set the "Load XML" action parameter.

  3. Set the parameters of the "Delete element" action. 

  4. Set the parameters of the "Save to file" action. 

  5. 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

  • Нет меток