REST XML Query
To create a new data set from an existing REST XML connection, follow the steps below:
-
If you have not yet configured the database connection, see REST XML. Then proceed with the steps below.
If you see the ‘Create Visualization’ dialog box, press the ‘Close’ button to continue with the steps below (recommended).

You can also press Create a Query to open the ‘New Data Worksheet’ dialog box, where you can select the query you wish to create. This allows you to skip the ‘Add’ button and proceed to the next steps.
-
Open the Data Worksheet that will contain the data. (See Create a Data Worksheet or Edit a Data Worksheet.)
-
Press the ‘Add’ button , and select ‘REST XML Query’ . This opens the ‘REST XML Query’ dialog box.

-
Enter the ‘URL Suffix’, and select the ‘XMLSchema’ (optional). If you select ‘XSD’ or ‘DTD’, supply the ‘XMLSchema URL’ for the XSD or DTD schema file.
-
Enter a desired ‘XPath expression’ to filter the data. See XML and XPath for information about the XPath syntax.

-
Optional: Select ‘Expand Arrays’ to expand a record that contains an array into multiple records.
-
For ‘Request Type’, select ‘GET’ or ‘POST’.
-
Optional: From the ‘Pagination’ menu, select ‘None ‘ or ‘Page Count’ as the type of pagination. ‘Page Count’ finds the total number of pages from the initial response and iterates through them page by page. Enter a desired ‘Page Count XPath’ and ‘Page Number URL Variable’. (See XML and XPath for information about the XPath syntax.) If ‘Zero-based Page Index’ is enabled, the page count starts with 0; otherwise, the page count starts with 1.
-
Optional: If you have more than a one data source of this type defined, you can select an alternate data source from the ‘Data Source’ menu.
-
Press OK. This creates a new data block in the Data Worksheet.
-
Optional: Right-click on the data block, and select ‘Properties’ from the context menu. Note: You can also access menu options from the ‘More’ button () in the mini-toolbar. This opens the ‘Table Properties’ panel. In the ‘Name’ field, enter a name for the data block, and press ‘OK’. (See Modify a Column for information about how to rename columns.
Names must be unique without respect to case (e.g., "num1" is the same name as "Num1"). -
Press the ‘Save’ button in the toolbar to save the Data Worksheet.
You can now do pipeline operations on this data, as described in Prepare Your Data, or you can proceed to create Dashboards based on this Data Worksheet. See Visualize Your Data for information about how to construct a Dashboard.


