История страницы
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
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
XML-document | An instance of the XML document |
Получить таблицу
Группа действий: XML
Действие извлекает значения атрибутов из всех встречающихся в документе XML-элементов с указанным именем и формирует из них таблицу
Настройки
Свойство
Описание
Тип
Пример заполнения
Обязательность заполнения поля
Параметры
XML-документ
. | Robin.XML |
XML context |
Yes |
Name of XML- |
element | Specify the name of the XML element from which to take attribute values for table | Robin.String |
Yes |
С заголовком
Heading | If the value is «true», the table header will be inserted into the document along with its rows. | Robin.Boolean | true |
Нет
Убрать дубли заголовка
No | |||
Remove duplicate header | If 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.Boolean | true |
No |
Results |
Result | The resulting table. The column headers will be the names of the attributes of the XML element | Robin.DataTable |
Особые условия использования
Получает таблицу значений параметров для элементов с указанным тегом.
У xml строка заголовка собирается из названий повторяющихся элементов, в которых указаны значения ячеек для каждой строки таблицы.
Пример использования
Задача: имеется XML документ. Составить таблицу с атрибутом Cell.
Решение: воспользоваться действиями "Открыть", "Получить таблицу", "Сохранить таблицу в CSV".
Реализация:
- Собрать схему робота, состоящую из действий: "Открыть", "Получить таблицу", "Сохранить таблицу в CSV".
- Настроить параметр для действия "Открыть".
- Настроить параметры для действия "Получить таблицу".
- Настроить параметры для действия "Сохранить таблицу в CSV".
Результат:
Программный робот отработал успешно. Данные по элементу Cell извлечены.
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.
Solution
Use the "Load XML", "Get data table", "Table to CSV" actions.
Implementation
Assemble a robot scheme with the actions: "Load XML", "Get data table", "Table to CSV".
- Set the "Load XML" action parameter.
- Set the "Get data table" action parameters.
- Set the "Table to CSV" action parameters.
Result
The program robot completed successfully. The data on the Cell element was extracted.