To set up an XML connection to connect a JReport catalog to an XML data source, follow the steps below:
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.
To specify the file directly, check the URI radio button, and click Browse to specify the instance file. To use a parameter to specify the file at runtime, check the Parameter radio button and then select the parameter from the Instance drop-down list or click to create one.
When done, click Next to go to the next screen.