![]() |
VOOZH | about |
The CData Excel Add-In for XML provides formulas that can edit, save, and delete XML data. The following three steps show how you can automate the following task: Search XML data for a user-specified value and then organize the results into an Excel spreadsheet.
The syntax of the CDATAQUERY formula is the following:
=CDATAQUERY(Query, [Connection], [Parameters], [ResultLocation]);
This formula requires three inputs:
Connection: Either the connection name, such as XMLConnection1, or a connection string. The connection string consists of the required properties for connecting to XML data, separated by semicolons.
CData Drivers let you work with XML files stored locally and stored in cloud storage services like Box, Amazon S3, Google Drive, or SharePoint, right where they are.
Set the URI property to local folder path.
To connect to XML file(s) within Amazon S3, set the URI property to the URI of the Bucket and Folder where the intended XML files exist. In addition, at least set these properties:
To connect to XML file(s) within Box, set the URI property to the URI of the folder that includes the intended XML file(s). Use the OAuth authentication method to connect to Box.
To connect to XML file(s) within Dropbox, set the URI proprerty to the URI of the folder that includes the intended XML file(s). Use the OAuth authentication method to connect to Dropbox. Either User Account or Service Account can be used to authenticate.
To connect to XML file(s) within SharePoint with SOAP Schema, set the URI proprerty to the URI of the document library that includes the intended XML file. Set User, Password, and StorageBaseURL.
To connect to XML file(s) within SharePoint with REST Schema, set the URI proprerty to the URI of the document library that includes the intended XML file. StorageBaseURL is optional. If not set, the driver will use the root drive. OAuth is used to authenticate.
To connect to XML file(s) within Google Drive, set the URI property to the URI of the folder that includes the intended XML file(s). Use the OAuth authentication method to connect and set InitiateOAuth to GETANDREFRESH.
The property is the controlling property over how your data is represented into tables and toggles the following basic configurations.
See the Modeling XML Data chapter for more information on configuring the relational representation. You will also find the sample data used in the following examples. The data includes entries for people, the cars they own, and various maintenance services performed on those cars.
The procedure below results in a spreadsheet that organizes all the formula inputs in the first column.
=CDATAQUERY("SELECT * FROM people WHERE [ personal.name.last ] = '"&B3&"'","URI="&B1&";DataModel="&B2&";Provider=XML",B4)
👁 Formula inputs used in this example. (Google Apps is shown.)Download a free trial of the Excel Add-In for XML to get started:
Download NowLearn more:
👁 XML Documents IconThe XML Excel Add-In is a powerful tool that allows you to connect with XML data stores directly from Microsoft Excel.
Use Excel to search, aggregate, read, write, and update XML documents directly. Perfect for mass imports / exports / updates, data cleansing & de-duplication, Excel based data analysis, and more!