Testing templates with a stand-alone data file
You can create a single file of real data from your data
source and store it as a reusable data file for testing templates
as you develop them. This approach is useful when you are using similar
data sets to create templates that contain similar types of information,
but are presented in different ways for document viewers.
About this task
Saving your data into an .xml file
You can access data from a data source by using the preview
data feature in Document Studio or by using a web browser.
Accessing data through Rational Publishing Engine
You can use the preview data feature in Rational® Publishing Engine to
view data from your data source and save it to your computer.
Procedure
- Connect to a data source schema.
- In the Data Source View, right-click a schema and select Preview Data. The URI entered for the default URI property is used to retrieve the data. If the default URI property does not have a value entered, you must enter a Root URL in the Data preview window.
- Optional: In the Data Preview window, enter or edit the Root URL to a data source query.
- Click Preview.
- If necessary, enter the credentials to authenticate with the data source including the user name and password and click OK. In the Result field, the data displays in XML format.
- Click Save and choose a location to save the data in an XML file.
- Click Close.
Accessing data through a web browser
For some data sources with web clients, view data from
your data source in a web browser and save it to your computer.
Procedure
- Copy the data source URL into a web browser to verify that the data loads correctly.
- Save the data as an .xml file.
Generating documents with stand-alone data
After you save your data as an .xml file,
you can specify it in the document generation wizard.