Read XML

XML data sources ..

Workshop - Read XML


Create a new Transformation

Any one of these actions opens a new Transformation tab for you to begin designing your transformation.

  • By clicking File > New > Transformation

  • By using the CTRL-N hot key

Placeholder for Read XML

XML - File

In this workflow, an XML file is parsed via an X-path to retrieve the required dataset.

Get data from XML - file
orders.xml

Get data from XML

This step provides the ability to read data from any type of XML file using XPath specifications.

  1. Start Pentaho Data Integration.

Windows - Powershell

Set-Location C:\Pentaho\design-tools\data-integration
.\spoon.bat

Linux

cd
cd ~/Pentaho/design-tools/data-integration
./spoon.sh
  1. Drag the ‘Get data from XML’ step onto the canvas.

  2. Double-click on the step, and configure the following properties:

XML - file
  1. Click on the Content tab, and configure the following properties:

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

XML - fields
  1. Click OK.

➡️ Next: Dummy

Last updated

Was this helpful?