Retrieving XML Data Over HTTP
After adding the XML/HTTP data source, if you want to have the XML data in tabular form to use it in SQL queries, you need to transform the XML data.
After creating an XML/HTTP data source, you can use it as follows to get XML data:
|
•
|
Execute the XML source within the data source, and view the data in XML format. |
|
•
|
Create a transformation of the data source, and execute the transformation to view the XML data in tabular form. |
To execute the XML source within the data source
Double-click the XML source (also called Web service operation) within the XML/HTTP data source.
Or, you can first select the XML/HTTP data source, and then select the File > Open <data source> menu option.
|
1.
|
In the editor that opens on the right, click the Execute toolbar button. |
The result is displayed in the Result panel.
|
2.
|
Click the Details button to view the XML data. |
To create a transformation of an XML/HTTP data source
Right-click at an appropriate location in the resource tree, and select New Transformation.
|
3.
|
In the Create Transformation window, select a non-XQuery transformation type. For example, select Basic XML to Tabular Mapping. |
|
5.
|
In the tree display, select the XML source in the XML/HTTP data source for the transformation. |
|
6.
|
Type a name for the transformation in the Transformation Name field. |
|
8.
|
For further details on transformations, Refer the User Guide, Chapter Transformations. |