Connecting to a XML data source

If you have the schema of the XML data source, you can extract data from a valid XML file.

Before you begin

For more information about how user names and passwords are stored, see Security considerations for IBM® Rational® Publishing Engine.

About this task

The XML file can reside on the local file system or a remote system accessible through a URL.

Procedure

  1. In the Document Specification view, expand Templates > Data Sources.
  2. Right-click the data source and select a configuration option:
    • If there is configuration layer metadata for the data source, click Configure using metadata.
      1. If authentication is required to connect to the data source specified in the configuration layer metadata, a window opens where you can enter your user name, password, and authentication type. Click OK.
      2. Select the value to use from the configuration layer and click OK.

        After selecting a value from the configuration layer, the data source is configured and you are not required to complete the remainder of this task.

    • If there is not configuration layer metadata for the data source, click Configure Data Source and continue to the next step.
  3. In the Configure XML Data Source window, click Next.
  4. URL: Enter the URL for the XML file or click Browse to select a file on your computer.
  5. If necessary, enter a user name and password.
  6. Authentication: Select the authentication type that applies to your data source. You can select one of the following authentication types:
    • Form
    • Basic
    • OAuth
    • OAuth-OSLC
  7. Accept header: Enter an accept type for providing the data. Examples:
    • image/jpeg
    • text/html
    • application/xml
    • */*
  8. Click OK. A basic and a form-based authentication is performed and the XML file path displays in the Properties view

Feedback