If you have the schema of the XML data source, you can
extract data from a valid XML file.
About this task
The XML file can reside on the local file system or a remote
system accessible through a URL.
Procedure
- In the Document Specification view, expand .
- Right-click the data source and select
a configuration option:
- If there is configuration layer metadata for the data source,
click Configure using metadata.
- 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.
- 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.
- In the Configure XML Data Source window, click Next.
- URL: Enter the URL for the XML file
or click Browse to select a file on your computer.
- If necessary, enter a user name and password.
- 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
- Accept header: Enter an accept type
for providing the data. Examples:
- image/jpeg
- text/html
- application/xml
- */*
- Click OK. A basic
and a form-based authentication is performed and the XML file path
displays in the Properties view