Hi All,
Access 2007:
I would like to import xml files into an Access table using VBA.
Below is the structure of the xml file:
I have searched online, but I can't figure out how to get the schema and then import the XML into Access using VBA.
Could someone possibly start me off on the correct path?
Many thanks.
Michael
Access 2007:
I would like to import xml files into an Access table using VBA.
Below is the structure of the xml file:
Code:
<?xml version="1.0" ?>
- <V55 xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance"[/URL] xsi:noNamespaceSchemaLocation="/smmt_share/v55_schema/xmlschema.xsd">
- <V55Header>
<UniqueIdentifier>125010001002</UniqueIdentifier>
<V55FileType>1</V55FileType>
<FileCreatedDatetime>20100000000</FileCreatedDatetime>
<ScanDatetime>2010000000000</ScanDatetime>
<BatchID>SS0000001</BatchID>
<BatchSequence>002</BatchSequence>
<DataEntryDatetime>2010000000000</DataEntryDatetime>
</V55Header>
- <V55Detail>
<DVLALocalOffice>000</DVLALocalOffice>
<Duplicate />
<ReRegMarker>false</ReRegMarker>
<RegistrationMark>XXXXXX</RegistrationMark>
<RegMarkCheckDigit>H</RegMarkCheckDigit>
<TaxClassCode>00</TaxClassCode>
<Variant />
<Version>EUROVCOMPLIANTENGINE</Version>
<EuroStatusDirectiveNumber />
<TrackWidth>0000-0000----</TrackWidth>
</V55Detail>
</V55>
I have searched online, but I can't figure out how to get the schema and then import the XML into Access using VBA.
Could someone possibly start me off on the correct path?
Many thanks.
Michael