Kettle (PDI) method for parsing XML, JSON, and other format data

Source: Internet
Author: User

Recently, because of the work business needs, has been studying the PDI tool parsing XML, JSON and other format data methods, parsing XML and JSON are simpler.

When parsing XML, just select the appropriate file (not necessarily the XML file, TXT, as long as the data is XML format can), and then select the loop read path, set the label to the name:

One: Select the file, if the XML data is entered in the previous procedure, do not select the file:


Second: Select the node that parses the XML, and the node you choose should be the root node of the data:


Three: Set the corresponding node name and data name:


Once the configuration is saved, you can run it.

The corresponding parsing JSON is also similar to XML parsing:

A: If it is the file data, select the corresponding file, if it is fluent in the field, the corresponding field can be configured.


Two: Configure the path and read the JSON.

A concrete example of parsing JSON is as follows:


If you are not quite sure you can go to my resources to download "Pentaho Data integration Cookbook 2ed.pdf", there is a detailed explanation.

Kettle (PDI) method for parsing XML, JSON, and other format data

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.