Uploading an XML file - 7.1

Talend Big Data Studio User Guide

author
Talend Documentation Team
EnrichVersion
7.1
EnrichProdName
Talend Big Data
task
Design and Development
EnrichPlatform
Talend Studio

About this task

This procedure describes how to upload an XML file to obtain the XML tree structure. To upload an XML Schema Definition (XSD) file, see Uploading an XSD file.

The example input XML file used to demonstrate this step contains some contact information, and the structure is like the following:

<contactInfo>
  <contact>
    <id>1</id>
    <firstName>Michael</firstName>
    <lastName>Jackson</lastName>
    <company>Talend</company>
    <city>Paris</city>
    <phone>2323</phone>
  </contact>
  <contact>
    <id>2</id>
    <firstName>Elisa</firstName>
    <lastName>Black</lastName>
    <company>Talend</company>
    <city>Paris</city>
    <phone>4499</phone>
  </contact>
  ...
</contactInfo>

To upload an XML file, do the following:

Procedure

  1. Click Browse... and browse your directory to the XML file to be uploaded. Alternatively, enter the access path to the file.
    The Schema Viewer area displays a preview of the XML structure. You can expand and visualize every level of the file's XML tree structure.
  2. Enter the Encoding type in the corresponding field if the system does not detect it automatically.
  3. In the Limit field, enter the number of columns on which the XPath query is to be executed, or 0 if you want to run it against all of the columns.
  4. Click Next to define the schema parameters.