I’ve been researching Excel XML the past couple days.
I started off with the goal of finding an easy way to filter XML data BEFORE it hit the spreadsheet. For instance, instead of dumping all of the XML to a list, then filtering it, I wanted to “query” the XML something like this:
(SELECT * FROM XML WHERE Record LIKE ‘Airport’)
similar to how I would query a database (in theory), however I was unsuccesful (I believe it’s possible to do it in the Schema, but that’s very user unfriendly). Also, XPath Predicates with a filter(see links) could possibly be what I’m looking for, however I couldn’t nail down the proper syntax.
A few links I found along the way:
Using the Excel 2003 Object Model to Add XML Data Integration (I could import and map XML to a repeating list with Xpath, however I couldn’t figure out the filter syntax(see XPath Predicates)….what is @foo?)
Microsoft Office Excel 2003 Preview (see XML Programmability)
W3Schools (lotsa XML links on the left menu)
XML Standards Reference (Xpath is there also)
Transform XML Files with XSLT When Importing into Microsoft Excel
Using Microsoft’s XMLHTTP Object to Get Data From Other Web Pages
Determine the Version of MSXML Parser Installed on a Computer
I created an Excel macro to post data to our WebService servlet.
March 24th, 2005 at 4:30 am
Great Set of Links, however, if you want a great solution for querying XML the same way you would SQL, then look no further than the Microsoft Log Parser … absolutely awesome toolkit for data conversions
http://www.microsoft.com/downloads/details.aspx?FamilyID=890cd06b-abf8-4c25-91b2-f8d975cf8c07&displaylang=en
March 25th, 2005 at 3:14 am
I’m looking to query the xml like sql- in theory only. Basically I just want to query/filter the xml with commands native to excel itself, not an addin etc. This functionality should be obvious, however It’s not.
The log parser looks interesting, thanks for the link mike!.
August 14th, 2008 at 6:40 pm
[...] sounds much better than link dump doesn’t it? Anyway I’ll drop some links occasionally from my bookmark folder to [...]