Read XML
XML data sources ..



Get data from XML
This step provides the ability to read data from any type of XML file using XPath specifications.
Start Pentaho Data Integration.
Drag the ‘Get data from XML’ step onto the canvas.
Double-click on the step, and configure the following properties:

Click on the Content tab, and configure the following properties:

Click on the Fields tab, and then on the ‘Get Fields’ button.

Click OK.

Generate rows
Generate rows outputs a specified number of rows. By default, the rows are empty; however, they can contain several static fields. This step is used primarily for testing purposes. It may be useful for generating a fixed number of rows, for example, you want exactly 12 rows for 12 months.
Drag the ‘Generate Rows’ step onto the canvas.
Double-click on the step, and configure the following properties:

Get data from XML
The dataset is being parsed from a stream field xmlUrl that’s being passed on from the ‘Pass URL’ step.
Drag the ‘Get Data from XML’ step onto the canvas.
Create a hop from the ‘Pass URL’ step.
Double-click on the step, and configure the following properties:

Click on the ‘Content’ tab and configure the following properties:

Click on the ‘Fields’ tab and configure the following properties:

Click on the ‘Get Fields’ button.
Next: open the Dummy tab.
Last updated
Was this helpful?





