Hi,
In the samples I've seen with an XML datasource, the URL is fixed (set
once at datasource creation).

This works fine with an RSS feed where the XML might be different on each
call, but I have a case where I want to use the sample template with
different XML (stored at different URLs).

Does anyone know of a way I can pass in a report parameter that I then
refer to in the data source URL?

Currently my workaround is to filter/replace the report design while its
read in and replacing the URL dynamically, but this forces a reparsing of
the template for each new data instead of reusing an existing template which
drasitcally slows performance.

"Michael Kortas" <m@kortas.net> wrote in message
news:2cff4e96948bedbc36e82f98224b827a$1@www.eclipse.org...
> Hello Bryant,
>
> i had the some problem and get this one running by passing the complete
> path to the xmlfile by a report parameter.
>
> Try the following:
>
> 1. Create a report parameter (eg. "url")
>
> 2. Bind the this parameter to the xml datasource
>
> 3. In the report designer set the url of the xml datasource to
> params['url']
> 4. Call the report and set the report parameter's value to the url of the
> xml file.
>
> good luck
>
> greetings
> Michael
>