...
The action creates new empty context.
Action icon
Action parameters
Input parameters
Parameter | Description |
---|
Version | A version of the document to be created. |
Encoding | Encoding. |
Output parameters
Context name - XML-context.
Settings of parameters
СвойствоАнгл. наименованиеОписаниеТип | Пример заполнения | Обязательность заполнения поля | Параметры |
---|
Версия | Version | Версия создаваемого документа.
Filling example | Mandatory field |
Parameters |
Version | The version of a new document. The default is |
По умолчанию 1Строка | 0НетКодировкаКодировка. По умолчанию UTF-8 | Строка | НетРезультатыКонтекст nameXML-контекст. | Идентификатор контекста XML | Context of an empty XML document | Robin.XML | XML context |
Нет Special conditions of use
None.
Example of use
Task
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.
Solution
Use the "Create new", "Add element", Save to file" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Create new" action parameter.
- Set the "Add element" action parameters (for root element INVENTORY).
- Set the "Add element" action parameters (for element BOOK).
In the "Attributes" field specify the attributes for the BOOK element.
- Set the "Save to file" action parameters.
- Click "Start" in the top panel.
...