История страницы
Create new Version 2 (Net)
Action group: XML
...
Description
The action creates new empty context
Action icon
Settings of parameters
Parameter | Description |
---|---|
Version | A version of the document to be created. |
Encoding | Encoding. |
Output parameters
Context name - XML-context.
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Version | The version of a new document. The default is 1.0 | Robin.String | No | |
Encoding | Encoding. Default UTF-8 | Robin.String | No | |
Results | ||||
Context | 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
Создать новый контекст
Группа действий: XML
Описание
Создает новый пустой контекст.
Иконка
Параметры
Входные параметры
Версия Версия создаваемого документа
Кодировка Кодировка
Выходные параметры
Контекст XML-контекст.
...
Версия создаваемого документа.
По умолчанию 1.0
...
Кодировка.
По умолчанию UTF-8
...
Контекст
...
XML-контекст.
...
Особые условия использования
Отсутствуют.
Пример использования
Задача
Создать новый XML-документ с корневым элементом INVENTORY и вложенным в него элементом BOOK, который имеет атрибуты TITLE="The Adventures of Huckleberry Finn" и and AUTHOR="Mark Twain". Сохранить полученный XML на рабочий стол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.
Result
The program robot completed successfully.
The created XML is saved to the workspace.
Результат:
Программный робот отработал успешно.
Созданный XML сохранен на рабочем столе.