Excel Add-In for XML

Build 25.0.9434

Connecting to XML Data Sources

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 add-in's default data modeling configuration (see below)

Service provider URI formats Connection example
Local Single File Path (One table)
file://localPath/file.xml
URI=C:/folder1/file.xml;
Directory Path (One aggregated table from all files)
file://localPath
HTTP or HTTPS http://remoteStream
https://remoteStream
URI=http://www.host1.com/streamname1;
Amazon S3 Single File Path (One table)
s3://remotePath/file.xml
URI=s3://bucket1/folder1/file.xml; AWSSecretKey=secret1; AWSRegion=OHIO;
Directory Path (One aggregated table from all files)
s3://remotePath
Azure Blob Storage azureblob://mycontainer/myblob/file.xml URI=azureblob://mycontainer/myblob/file.xml; AzureStorageAccount=myAccount; AzureAccessKey=myKey;
URI=azureblob://mycontainer/myblob/file.xml; AzureStorageAccount=myAccount; AuthScheme=OAuth;
Google Drive Single File Path (One table)
gdrive://remotePath/file.xml
gdrive://SharedWithMe/remotePath/file.xml
URI=gdrive://folder1/file.xml; AuthScheme=OAuth;
URI=gdrive://SharedWithMe/folder1/file.xml; AuthScheme=OAuth;
Directory Path (One aggregated table from all files)
gdrive://remotePath
gdrive://SharedWithMe/remotePath
One Drive Single File Path (One table)
onedrive://remotePath/file.xml
onedrive://SharedWithMe/remotePath/file.xml
URI=onedrive://folder1/file.xml; AuthScheme=OAuth;
URI=onedrive://SharedWithMe/folder1/file.xml; AuthScheme=OAuth;
Directory Path (One aggregated table from all files)
onedrive://remotePath
onedrive://SharedWithMe/remotePath
Box Single File Path (One table)
box://remotePath/file.xml
URI=box://folder1/file.xml; AuthScheme=OAuth;
Directory Path (One aggregated table from all files)
box://remotePath
Dropbox Single File Path (One table)
dropbox://remotePath/file.xml
URI=dropbox://folder1/file.xml; AuthScheme=OAuth; OAuthClientId=oauthclientid1; OAuthClientSecret=oauthcliensecret1; CallbackUrl=http://localhost:12345;
Directory Path (One aggregated table from all files)
dropbox://remotePath
SharePoint SOAP Single File Path (One table)
sp://remotePath/file.xml
URI=sp://Documents/folder1/file.xml; User=user1; Password=password1; StorageBaseURL=https://subdomain.sharepoint.com;
Directory Path (One aggregated table from all files)
sp://remotePath
SharePoint REST Single File Path (One table)
sprest://remotePath/file.xml
URI=sprest://Documents/folder1/file.xml; AuthScheme=OAuth; StorageBaseURL=https://subdomain.sharepoint.com;
Directory Path (One aggregated table from all files)
sprest://remotePath
FTP or FTPS Single File Path (One table)
ftp://server:port/remotePath/file.xml
ftps://server:port/remotepath/file.xml
URI=ftps://localhost:990/folder1/file.xml; User=user1; Password=password1;
Directory Path (One aggregated table from all files)
ftp://server:port/remotePath
ftps://server:port/remotepath;
SFTP Single File Path (One table)
sftp://server:port/remotePath/file.xml
URI=sftp://127.0.0.1:22/folder1/file.xml; User=user1; Password=password1;
URI=sftp://127.0.0.1:22/folder1/file.xml; SSHAuthmode=PublicKey; SSHClientCert=myPrivateKey
Directory Path (One aggregated table from all files)
sftp://server:port/remotePath
Azure Data Lake Store Gen1 adl://remotePath/file.xml
adl://Account.azuredatalakestore.net@remotePath/file.xml
URI=adl://folder1/file.xml; AuthScheme=OAuth; AzureStorageAccount=myAccount; AzureTenant=tenant;
URI=adl://myAccount.azuredatalakestore.net@folder1/file.xml; AuthScheme=OAuth; AzureTenant=tenant;
Azure Data Lake Store Gen2 abfs://myfilesystem/remotePath/file.xml
abfs://[email protected]/remotepath/file.xml
URI=abfs://myfilesystem/folder1/file.xml; AzureStorageAccount=myAccount; AzureAccessKey=myKey;
URI=abfs://[email protected]/folder1/file.xml; AzureAccessKey=myKey;
Azure Data Lake Store Gen2 with SSL abfss://myfilesystem/remotePath/file.xml
abfss://[email protected]/remotepath/file.xml
URI=abfss://myfilesystem/folder1/file.xml; AzureStorageAccount=myAccount; AzureAccessKey=myKey;
URI=abfss://[email protected]/folder1/file.xml; AzureAccessKey=myKey;
Wasabi Single File Path (One table)
wasabi://bucket1/remotePath/file.xml
URI=wasabi://bucket/folder1/file.xml; AccessKey=token1; SecretKey=secret1; Region='us-west-1';
Directory Path (One aggregated table from all files)
wasabi://bucket1/remotePath
Google Cloud Storage Single File Path (One table)
gs://bucket/remotePath/file.xml
URI=gs://bucket/folder1/file.xml; AuthScheme=OAuth; ProjectId=test;
Directory Path (One aggregated table from all files)
gs://bucket/remotePath
Oracle Cloud Storage Single File Path (One table)
os://bucket/remotePath/file.xml
URI=os://bucket/folder1/file.xml; AccessKey='myKey'; SecretKey='mySecretKey'; OracleNameSpace='myNameSpace' Region='us-west-1';
Directory Path (One aggregated table from all files)
os://bucket/remotePath
Azure File Single File Path (One table)
azurefile://fileShare/remotePath/file.xml
URI=azurefile://bucket/folder1/file.xml; AzureStorageAccount='myAccount'; AzureAccessKey='mySecretKey';
URI=azurefile://bucket/folder1/file.xml; AzureStorageAccount='myAccount'; AzureSharedAccessSignature='mySharedAccessSignature';
Directory Path (One aggregated table from all files)
azurefile://fileShare/remotePath
IBM Object Storage Source Single File Path (One table)
ibmobjectstorage://bucket1/remotePath/file.xml
URI=ibmobjectstorage://bucket/folder1/file.xml; AuthScheme='IAMSecretKey'; AccessKey=token1; SecretKey=secret1; Region='eu-gb';
URI=ibmobjectstorage://bucket/folder1/file.xml; ApiKey=key1; Region='eu-gb'; AuthScheme=OAuth; InitiateOAuth=GETANDREFRESH;
Directory Path (One aggregated table from all files)
ibmobjectstorage://bucket1/remotePath
Hadoop Distributed File System Single File Path (One table)
webhdfs://host:port/remotePath/file.xml
URI=webhdfs://host:port/folder1/file.xml
Directory Path (One aggregated table from all files)
webhdfs://host:port/remotePath
Secure Hadoop Distributed File System Single File Path (One table)
webhdfss://host:port/remotePath/file.xml
URI=webhdfss://host:port/folder1/file.xml
Directory Path (One aggregated table from all files)
webhdfss://host:port/remotePath

Modeling XML Data

The DataModel property controls how your data is represented into tables.

  • Document (default): Model a top-level, document view of your XML data. The add-in returns nested object arrays as aggregated XML objects.
  • FlattenedDocuments: Implicitly join nested array objects and parent objects into a single table.
  • Relational: View nested object arrays as individual, related tables containing a primary key and a foreign key that links to the parent document.

Next Steps

  • See Parsing Hierarchical Data for examples showing how to query a dataset in each DataModel configuration.
  • See Modeling XML Data for information on customizing schema discovery and how to execute SQL to XML.
  • See Fine-Tuning Data Access for more advanced connection settings: fine-tune the default data modeling settings, connect through a firewall, or troubleshoot connections.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434