Database Setup Wizard Options

The Database Setup wizard offers functionality and options that you can use to define how the XML should be interpreted when it is converted to a database. The wizard includes the following pages.

ClosedSelect File Page

After you select an XML file, you see a preview in the File Preview area of the file that you connected to (on the Contents tab) and of the database table that results (on the Fields tab).

ClosedSelect XML Schema Page

Use this page to provide an external schema file or to specify that the wizard should infer the schema from the XML file that you provided.

If the XML contains internal schema references that are inaccessible or not valid, you receive an error message. You must resolve any schema issues before you can continue.

The following options are available:

ClosedSelect Element Type For Record Page

In the Select all elements of a single type area, select the element that you want to use as the master element. This element forms the basis of the database records.

When you select the master element, a preview of the resulting database table is displayed on the Fields tab. A database record (one row in the table) is created for each occurrence of the selected master element in the XML file.

On this page, you can select only one master element. To select multiple master elements or to select only some elements based on other criteria, click to select the Select elements using an advanced condition or XPath expression check box, and then click Next to open the Advanced Record Element Selection page.

ClosedAdvanced Record Element Selection Page

This page provides advanced options for selecting master elements. The following options are available: 

The following examples illustrate the different database results that you get when you select a single element as the master element or select all the elements of the same type as the master element.

ClosedSelect a single element as the master element

Suppose that you are using the following XML file.

You select the <Name> node for "Angela Franklin" to be the master element. Because there are two instances of the <Name> element in the parent <Employees> node, the database includes two records and resembles the following: 

ClosedSelect all elements of the same type

Suppose that you are using the following XML file.

On the Advanced Record Element Selection page, you do one of the following: 

  • Click to select Select all elements of type, and then select Name in the list.

  • Click to select Select all nodes of type, select Name in the list, and then select Company or Manager in the Under list.

The resulting database captures all instances of the <Name> element and generates three records, as follows:

ClosedParent/Child Node Selection Page

After you select one or more master elements, you can use this page to select the elements and attributes that you want to contribute field data to your database and to specify how you want repeating elements to be handled.

The Available Nodes area displays the elements and attributes that you can select to provide field data. These can include both parent and child elements and their attributes. Click to select the check boxes for the nodes that you want.

For repeating nodes, the options that are available depend on the data type (string, numeric, date, Boolean, and so on) and include the following.

If you did not provide a schema file, the wizard allows for elements in your XML to repeat even if they do not repeat in your sample XML file. Therefore, these options might be available even though these nodes do not actually repeat.