Uploading an XSD file - 7.1

Talend Big Data Studio User Guide

English (United States)
Talend Big Data
Talend Studio
Design and Development

About this task

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

An XSD file is used to define the schema of XML files. The structure and element data types of the example XML file above can be described using the following XSD, which is used as the example XSD input in this section.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
  <xs:element name="contactInfo">
        <xs:element maxOccurs="unbounded" ref="contact"/>
  <xs:element name="contact">
        <xs:element ref="id"/>
        <xs:element ref="firstName"/>
        <xs:element ref="lastName"/>
        <xs:element ref="company"/>
        <xs:element ref="city"/>
        <xs:element ref="phone"/>
  <xs:element name="id" type="xs:integer"/>
  <xs:element name="firstName" type="xs:NCName"/>
  <xs:element name="lastName" type="xs:NCName"/>
  <xs:element name="company" type="xs:NCName"/>
  <xs:element name="city" type="xs:NCName"/>
  <xs:element name="phone" type="xs:integer"/>

For more information on XML Schema, see http://www.w3.org/XML/Schema.


When loading an XSD file,

  • the data will be saved in the Repository, and therefore the metadata will not be affected by the deletion or displacement of the file.

  • you can choose an element as the root of your XML tree.

To load an XSD file, do the following:


  1. Click Browse... and browse your directory to the XSD file to be uploaded. Alternatively, enter the access path to the file.
  2. In the dialog box the appears, select an element from the Root list as the root of your XML tree, and click OK.
    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.
  3. Enter the Encoding type in the corresponding field if the system does not detect it automatically.
  4. 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.
  5. Click Next to define the schema parameters.