#### Adding an HDS to a catalog

You have two ways to add an HDS to a catalog:

- Adding a general HDS
  1. Open the catalog to which you want to add the HDS.
  2. In the Data tab of the Catalog Browser, expand the data source to which the HDS is to be added, then right-click the Hierarchical node, and then select Add General Hierarchical Data Source from the shortcut menu.
  3. In the Add General Hierarchical Data Source dialog, click the Browse button to specify the HDS class name, and type a number in the Parameter box.
  4. Click Load Tree. The data source tree will then be parsed. Modify the column properties in the Columns box as required.
  5. Click OK to add the HDS.
- Importing an HDS from an XML file
  1. Select Import XML Hierarchical Data Source from the shortcut menu after right-clicking the Hierarchical node.
  2. In the Import XML Hierarchical Data Source dialog, click the Browse buttons to specify the XML URI and XSD URI as required.
  3. Click the Load Tree button to load the structure of the XML file. The root of the file will then be listed in the Root Name text box. Modify the column properties in the Columns box as required.
  4. Click OK to import the HDS into the catalog.

The following examples explain the above two methods in detail:

- Example 1: Adding a general HDS
- Example 2: Importing an HDS from an XML file to a catalog