Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transferring XML to Access 2003

Status
Not open for further replies.

magicandmight

IS-IT--Management
Aug 27, 2004
77
US
I have an XML file that was sent to me from a vendor that I need to get into Access 2003. It has a different format then what I usually use when transferring to Access. I have tried my usually import external data to know avail. Anyone know of a way of transferring it without having the vendor change their procedure?

If I change it where each record has only a tag of ie <Individual_In_Network> with the value by itself then close it out as </Individual_in_Network> it gives me know problem but otherwise it only sees element within the table.

<body template="BenefitDocument" reference="Job 12345">

<table name="MaximumsTable">
<Row>
<element name="Individual In Network" value="$1500.00"/>
<element name="Individual Out of Network" value="$0.00"/>
<element name="Family In Network" value="$0.00"/>
<element name="Family Out of Network" value="$0.00"/>
<element name="Individual In Network Lifetime" value="$0.00"/>
<element name="Individual Out of Network Lifetime" value="$0.00"/>
<element name="Family In Network Lifetime" value="$0.00"/>
<element name="Family Out of Network Lifetime" value="$0.00"/>
</Row>
<Row>
<element name="Individual In Network" value="$0.00"/>
<element name="Individual Out of Network" value="$0.00"/>
<element name="Family In Network" value="$0.00"/>
<element name="Family Out of Network" value="$0.00"/>
<element name="Individual In Network Lifetime" value="$1500.00"/>
<element name="Individual Out of Network Lifetime" value="$0.00"/>
<element name="Family In Network Lifetime" value="$0.00"/>
<element name="Family Out of Network Lifetime" value="$0.00"/>
</Row>
<Row>
<element name="Individual In Network" value="$0.00"/>
<element name="Individual Out of Network" value="$0.00"/>
<element name="Family In Network" value="$0.00"/>
<element name="Family Out of Network" value="$0.00"/>
<element name="Individual In Network Lifetime" value="$0.00"/>
<element name="Individual Out of Network Lifetime" value="$0.00"/>
<element name="Family In Network Lifetime" value="$0.00"/>
<element name="Family Out of Network Lifetime" value="$0.00"/>
</Row>
<Row>
<element name="Individual In Network" value="$0.00"/>
<element name="Individual Out of Network" value="$0.00"/>
<element name="Family In Network" value="$0.00"/>
<element name="Family Out of Network" value="$0.00"/>
<element name="Individual In Network Lifetime" value="$0.00"/>
<element name="Individual Out of Network Lifetime" value="$0.00"/>
<element name="Family In Network Lifetime" value="$0.00"/>
<element name="Family Out of Network Lifetime" value="$0.00"/>
</Row>
</table>

</body>
 
The magic you are seeking is XSLT. A trip to my Access 2003 help shows the Transforming XML files with XSLT in Access. You may find a tutorial on XSLT at
The XSLT transformation you require is most likely fairly easy to accomplish. However, your problem description is not too helpful. In the context of your description, for example, what is the meaning of, "each record?" You might actually show us what output you require in XML, rather than using a verbal description.

Tom Morrison
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top