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. | 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 |
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.
Обзор
Инструменты контента