Connecting to XML Datasources

After connecting to your data source, set DataModel to more closely match the data representation to the structure of your data.

Connecting to XML

Below are example connection strings to XML files or streams, using the provider's default data modeling configuration (see below):

Modeling XML Data

The DataModel property is the controlling property over how your data is represented into tables and toggles the following basic configurations.

  • Document (default): Model a top-level, document view of your XML data. The provider returns nested elements as aggregated XML.

  • FlattenedDocuments: Detect nested documents and implicitly join them into a single table.

  • Relational: Return individual, related tables from hierarchical data. The tables contain a primary key and a foreign key that links to the parent document.

See Parsing Hierarchical Data

Last updated