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

Ключ

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

Get data table Version 7 (Net)

Action group: XML

...

Description

The action extracts attribute values from all XML elements with the specified name found in the document and forms a table from them.

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
XML-documentAn instance of the XML document

Получить таблицу 

Группа действий: XML

Действие извлекает значения атрибутов из всех встречающихся в документе XML-элементов с указанным именем и формирует из них таблицу

Image Removed

Настройки

Свойство

Описание

Тип

Пример заполнения

Обязательность заполнения поля

Параметры

XML-документ

Экземпляр XML-документа
.Robin.XML
Контекст
XML context
Да
Yes
Имя
Name of XML-
элементаУказать имя XML-элемента, из которого нужно взять значения атрибутов для таблицы.
elementSpecify the name of the XML element from which to take attribute values for tableRobin.String
Да

Yes

С заголовком

Если значение «true», названия элементов, обозначающих столбцы, будут выделены отдельно как заголовок и не будут входить в строки с содержимым таблицы
HeadingIf the value is «true», the table header will be inserted into the document along with its rows.Robin.Booleantrue

Нет

Убрать дубли заголовка

Если значение «true», в заголовке полученной таблицы к одинаковым названиям столбцов будут добавлены индексы. Нумерация начинается с
No
Remove duplicate headerIf the value is «true», indexes will be added to the same column names in the header of the resulting table. Numbering starts from 1.Robin.Booleantrue
Нет
No
Результаты
Results
РезультатПолученная таблица. Заголовками столбцов будут названия атрибутов XML-элемента.
ResultThe resulting table. The column headers will be the names of the attributes of the XML elementRobin.DataTable

Особые условия использования

Получает таблицу значений параметров для элементов с указанным тегом.

У xml строка заголовка собирается из названий повторяющихся элементов, в которых указаны значения ячеек для каждой строки таблицы.

Пример использования 

Задача: имеется XML документ. Составить таблицу с атрибутом Cell. 

Image Removed

Решение: воспользоваться действиями "Открыть", "Получить таблицу", "Сохранить таблицу в CSV". 

Реализация:

  1. Собрать схему робота, состоящую из действий: "Открыть", "Получить таблицу", "Сохранить таблицу в CSV".  
    Image Removed
  2. Настроить параметр для действия "Открыть". 
    Image Removed
  3. Настроить параметры для действия "Получить таблицу".
    Image Removed
  4. Настроить параметры для действия "Сохранить таблицу в CSV". 
    Image Removed

Результат:

Программный робот отработал успешно. Данные по элементу Cell извлечены. 

Image Removed



Special conditions of use

Gets a table of parameter values for elements with the specified tag.

In xml, the header string is assembled from the names of duplicate elements, which specify the cell values for each row of the table.

Example of use

Task

You have an XML-document. Create a table with the Cell attribute.

Image Added

Solution

Use the "Load XML", "Get data table", "Table to CSV" actions.

Implementation

  1. Assemble a robot scheme with the actions: "Load XML", "Get data table", "Table to CSV".

    Image Added

  2. Set the "Load XML" action parameter.
    Image Added
  3. Set the "Get data table" action parameters.
    Image Added
  4. Set the "Table to CSV" action parameters.
    Image Added

Result

The program robot completed successfully. The data on the Cell element was extracted.

Image Added

 Image Removed