Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

« Предыдущий Версия 5 Следующий »

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

Свойство

Описание

Тип

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

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

Параметры

XML-документ

Экземпляр XML-документа.

Robin.XML

Контекст XML

Да

Имя XML-элемента

Указать имя XML-элемента, из которого нужно взять значения атрибутов для таблицы.

Robin.String


Да

С заголовком

Если значение «true», названия элементов, обозначающих столбцы, будут выделены отдельно как заголовок и не будут входить в строки с содержимым таблицы.

Robin.Boolean

true

Нет

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

Если значение «true», в заголовке полученной таблицы к одинаковым названиям столбцов будут добавлены индексы. Нумерация начинается с 1.

Robin.Boolean

true

Нет

Результаты
РезультатПолученная таблица. Заголовками столбцов будут названия атрибутов XML-элемента.Robin.DataTable

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

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

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

Result

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

 


  • Нет меток