display-medicalRead XML

XML data sources ..

circle-exclamation

Workshop - Read XML

Get Data from XML

circle-info

Workshop files

Download these files before you start:

  • The sample XML input.

  • The starter transformation (optional).

file-download
1KB

Read XML
circle-info

Create a new transformation

Use any of these options to open a new transformation tab:

  • Select File > New > Transformation

  • Use Ctrl+N (Windows/Linux) or Cmd+N (macOS)


circle-info

XML - File

In this workflow, an XML file is parsed via XPath to retrieve the dataset.

Get data from XML - file
orders.xml
circle-info

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.

circle-info
  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.

Last updated

Was this helpful?