Skip to main content Skip to complementary content

Uploading an XSD file

About this task

This procedure describes how to upload an XSD file to obtain the XML tree structure.

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:complexType>
      <xs:sequence>
        <xs:element maxOccurs="unbounded" ref="contact"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="contact">
    <xs:complexType>
      <xs:sequence>
        <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:sequence>
    </xs:complexType>
  </xs:element>
  <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"/>
</xs:schema>

For more information on XML Schema, see XML Schema.

Information noteNote:

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:

Procedure

  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.
    File - Step 3 of 5 dialog box.
  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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!