Setting up an XML connection

To set up an XML connection to connect a JReport catalog to an XML data source, follow the steps below:

  1. Create a catalog or open a catalog, then in the Data tab of the Catalog Browser, right-click the node of a data source and choose Add XML Connection from the shortcut menu.

    If you want to set up the connection by adding a data source to an existing catalog and then defining the connection on the data source, open the catalog, select any data source contained in it, click the New Data Source button on the Catalog Browser toolbar, then in the New Data source dialog, specify the name of the data source, select the XML connection type and click OK.

    The XML Connection Wizard appears.

  2. In the Import XML Schema screen, provide the required information for importing an XML schema. See the screen.

    When done, click Next to go to the next screen.

  3. In the Modify Schema Properties screen, supplement and modify the element properties as required and then click Next.
  4. In the Transform XML Schema screen, select an XPath to be the transforming start point, and then click Next.
  5. In the Transformed Relational Schema screen, check the transformed result, and then click Next.
  6. In the Add Table screen, add the required tables to the connection, and check the Generate the default pre-join path checkbox for generating default pre-join paths for tables of the XML data source.
  7. Click Finish to confirm the transformed result and finalize the transformation process.