To connect XML data to Tableau using ODBC, follow these steps to configure the data source and understand how your XML structure will be interpreted within Tableau.
Ensure that a compatible ODBC driver, such as the CData XML ODBC Driver, that supports XML is installed on your system.
Launch the Microsoft ODBC Data Source Administrator :
In the ODBC setup dialog:
Supported Authentication Methods:
The DataModel setting defines how XML will be represented in Tableau:
| DataModel Option | Description |
|---|---|
| Document (default) | Treats the entire XML as a single document. Nested elements appear as aggregates. |
| Flattened Documents | Flattens nested nodes into a single table. |
| Relational | Splits XML into normalized, related tables with primary and foreign keys. |
Choose the model that aligns with your desired level of data granularity.
Example: XML Source and Resulting Tables
<Orders>
<Order>
<OrderID>101</OrderID>
<Customer>Jane</Customer>
<Items>
<Item><Product>Laptop</Product><Quantity>1</Quantity></Item>
<Item><Product>Mouse</Product><Quantity>2</Quantity></Item>
</Items>
</Order>
</Orders>
DataModel → Resulting Structure
With a track record of serving over 300 U.S. customers, DataTerrain offers dependable assistance in Tableau configuration, including ODBC-based connections. Our consultants provide flexible engagement terms and are available to assist without requiring long-term commitments.