![]() |
VOOZH | about |
The CData Excel Add-In for XML enables you to edit and save XML data directly from Excel. This article explains how to transfer data from Excel to XML. This technique is useful if you want to work on XML data in Excel and update changes, or if you have a whole spreadsheet you want to import into XML. In this example, you will use the people table; however, the same process will work for any table that can be retrieved by the CData Excel Add-In.
If you have not already done so, create a new XML connection by clicking From XML on the ribbon.
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.
To insert data into XML, you will first need to retrieve data from the XML table you want to add to. This links the Excel spreadsheet to the XML table selected: After you retrieve data, any changes you make to the data are highlighted in red.
After retrieving data, you can add data from an existing spreadsheet in Excel.
As each row is inserted, the Id value will appear in the Id column and the row's text will change to black, indicating that the record has been inserted.
👁 The changes applied. (QuickBooks 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!