D
Deleted member 73419
Guest
Hi,
I have an excel file which I need to read into a recordset so that I can perform additional queries on it.
The xml file contains:
and i'd like to end up with a recordset, something like this:
Item | Qty | Sub
================
1903 | 15 | Widget 1
| 10 | Widget 2
1551 | 5 | Widget 3
which I can perform additional SQL queries on.
Something like "SELECT * FROM xmlFile" would be really nice but I suspect there has to be some code to read in the file?
Any help is appreciated.
Thanks
I have an excel file which I need to read into a recordset so that I can perform additional queries on it.
The xml file contains:
Code:
[SIZE=3][FONT=Calibri]<Catalog>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<Rec>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<ITEM dt:dt="string">1903</ITEM>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<QTY dt:dt="string">15</QTY>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<SUB dt:dt="string">Widget 1</SUB>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]</Rec>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<Rec>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<ITEM dt:dt="string"/>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<QTY dt:dt="string">10</QTY>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<SUB dt:dt="string">Widget 2</SUB>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]</Rec>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<Rec>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<ITEM dt:dt="string">1551</ITEM>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<QTY dt:dt="string">5</QTY>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<SUB dt:dt="string">Widget 3</SUB>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]</Rec>[/FONT][/SIZE]
[FONT=Calibri][SIZE=3]<Catalog>[/SIZE][/FONT]
Item | Qty | Sub
================
1903 | 15 | Widget 1
| 10 | Widget 2
1551 | 5 | Widget 3
which I can perform additional SQL queries on.
Something like "SELECT * FROM xmlFile" would be really nice but I suspect there has to be some code to read in the file?
Any help is appreciated.
Thanks