BackPrevious Page Next PageNext

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.
  2. In the Catalog Manager, 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 in a new data source in the catalog, select any of the existing catalog data sources, click New Data Source on the Catalog Manager 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.

    XML Connection Wizard

  3. In the Import XML Schema screen, specify the way to import the XML schema from the Schema Type drop-down list: Import from XSD or Parse from XML Instance.
  4. Provide the required information for importing the XML schema.
  5. Click the Time Zone and Locale button to specify the time zone and the locale for the XML instance in the Time Zone and Locale Options dialog.
  6. When parameters and formulas are referenced in the URI/parameter string, click the Edit Format button to edit the format of their values if needed.
  7. Click Next to go to the next screen.
  8. In the Modify Schema Properties screen, supplement and modify the element properties as required and then click Next.

    XML Connection Wizard - Modify Schema Properties

  9. In the Transform XML Schema screen, select an XPath to be the transforming start point. Click Next.

    XML Connection Wizard - Transform XML Schema

  10. In the Transformed Relational Schema screen, check the transformed result, and then click Next.

    XML Connection Wizard - Transformed Relational Schema

  11. 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.

    XML Connection Wizard - Add Table

  12. Click Finish to confirm the transformed result and finalize the transformation process.

BackPrevious Page Next PageNext