Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

The action creates new empty context.

Action icon


Action parameters

Input parameters

ParameterDescription
VersionA version of the document to be created.
EncodingEncoding.

Output parameters

Context name - XML-context.

Settings of parameters

Свойство
Property
Англ. наименование
Description
Описание
Type
ТипПример заполненияОбязательность заполнения поляПараметрыВерсияVersion

Версия создаваемого документа.

Filling exampleMandatory field
Parameters
VersionThe version of a new document. The default is
По умолчанию 1
1.0
Строка
Robin.
0
String
Нет

No
Кодировка
EncodingEncoding

Кодировка.

По умолчанию UTF-8

Строка 
. Default UTF-8
Нет
Robin.String
Результаты

No
Контекст
Results
Context
name

XML-контекст.

Идентификатор контекста XML
Context of an empty XML documentRobin.XMLXML 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

  1. Assemble a robot scheme with the actions.

  2. Set the "Create new" action parameter.

  3. Set the "Add element" action parameters (for root element INVENTORY).

  4. Set the "Add element" action parameters (for element BOOK).



    In the "Attributes" field specify the attributes for the BOOK element.


  5. Set the "Save to file" action parameters.
  6. Click "Start" in the top panel.

...