For the complete documentation index, see llms.txt. This page is also available as Markdown.

Read XML

XML data sources ..

Workshop - Read XML

Get Data from XML

Workshop files

Download these files before you start:

  • The sample XML input.

  • The starter transformation (optional).

1KB
Open

Read XML

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)


XML - File

In this workflow, an XML file is parsed via XPath to retrieve the 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.

  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?