dbTalk Databases Forums  

load xml data into Access where an xml node has > 256 columns

comp.databases.ms-access comp.databases.ms-access


Discuss load xml data into Access where an xml node has > 256 columns in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bob Alston
 
Posts: n/a

Default load xml data into Access where an xml node has > 256 columns - 09-07-2010 , 07:08 PM






I have an XML download I want to load to Access. I can do this for most
of the sub-nodes of the xml document. However, one node has about 400
fields. I would like to break it up and store in two Access tables.

Anyone done this via VBA or a utility? If VBA, care to share the code?

Bob

Reply With Quote
  #2  
Old   
Banana
 
Posts: n/a

Default Re: load xml data into Access where an xml node has > 256 columns - 09-07-2010 , 08:21 PM






On 9/7/10 5:08 PM, Bob Alston wrote:
Quote:
I have an XML download I want to load to Access. I can do this for most
of the sub-nodes of the xml document. However, one node has about 400
fields. I would like to break it up and store in two Access tables.

Anyone done this via VBA or a utility? If VBA, care to share the code?

Bob
IMHO, it's probably easier to use a XSLT to transform the incoming XML
into a structure that's compatible with Access. You can have it
transform into structure that Access will be then able to import into
several tables to maintain normalization.

Note that Access already has TransformXML method built-in so you're just
a XSLT away.

Reply With Quote
  #3  
Old   
Bob Alston
 
Posts: n/a

Default Re: load xml data into Access where an xml node has > 256 columns - 09-07-2010 , 08:45 PM



On 9/7/2010 8:21 PM, Banana wrote:
Quote:
On 9/7/10 5:08 PM, Bob Alston wrote:
I have an XML download I want to load to Access. I can do this for most
of the sub-nodes of the xml document. However, one node has about 400
fields. I would like to break it up and store in two Access tables.

Anyone done this via VBA or a utility? If VBA, care to share the code?

Bob

IMHO, it's probably easier to use a XSLT to transform the incoming XML
into a structure that's compatible with Access. You can have it
transform into structure that Access will be then able to import into
several tables to maintain normalization.

Note that Access already has TransformXML method built-in so you're just
a XSLT away.
Sounds good. Can you tell me a bit more or where to look for the info I
will need?

Bob

Reply With Quote
  #4  
Old   
Banana
 
Posts: n/a

Default Re: load xml data into Access where an xml node has > 256 columns - 09-07-2010 , 10:40 PM



On 9/7/10 6:45 PM, Bob Alston wrote:
Quote:
Sounds good. Can you tell me a bit more or where to look for the info I
will need?

Bob
To learn about the syntax for XSLT, I primarily used w3schools. You may
need to read up on XML as well XPath to round out the study.

http://www.w3schools.com/xsl/

For writing the XSLT, I've found that Visual Studio has pretty decent
editor, providing intelllisense for the XML keywords as well any custom
schemas you may. Unfortunately, I never found out whether this is
available in Express Edition (I'd be surprised if it wasn't, though).
You don't have to create a Visual Studio project - just choose "New
File", and choose XSLT then you can start writing, and it also provides
a debugger so you can see what your XSLT will output.

That's basically what I did - there's certainly several other XML
editors and tutorials out there.

HTH.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.