XML schema mapping is a new feature of Excel 2003 that allows developers to link database data directly to an Excel workbook. Data from a database stored as XML can be imported directly into an Excel workbook once that data is mapped. XML data can also be easily exported from an Excel map. A reference to an Excel workbook, the "XMLMaps" object, an XML schema file, and an XML data file are all that is needed to display XML data in Excel.
- Skill level:
- Moderately Challenging
Other People Are Reading
Declare variables to hold the "Workbook" and the "XMLMap" in Excel. The "MapData" method retrieves the XML map information to the VB.Net application.
Use the "Add" method of the XMLMaps collection to create a new XMLMap object from an XML spreadsheet.
Import the XML data with the "importXML" method of the XMLMap object. Provide the XML data stream to the "importXML" method.
Export data from the Excel map to an XML file using the "exportXML" method of the XMLMap object.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for