Action group: XML
The action extracts attribute values from all XML elements with the specified name found in the document and forms a table from them.
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 |
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.
You have an XML-document. Create a table with the Cell attribute.
Use the "Load XML", "Get data table", "Table to CSV" actions.
Assemble a robot scheme with the actions: "Load XML", "Get data table", "Table to CSV".
The program robot completed successfully. The data on the Cell element was extracted.