Good morning all!
This is a followup post to my previous question regarding exporting Access to XML. I've attached a copy of the database and here is the desired output (FROM THE TOSTATE3 TABLE):XML_ToState.zip
I have tried many things, and cannot for the life of me figure out how to add the start and end tags between groups (ie. <e01> and </e01) - I can export the xml fine - but of course the extra tags do not show up. Any thoughts? NOTE: I did NOT create this db, I inherited it. The XML needs to be uploaded to a state database monthly. I thank you in advance and wish you all a VERY HAPPY FRIDAY!Code:<?xml version="1.0" encoding="UTF-8"?> <EMSDataSet xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"> <Header> <Record> <e01> <e01_01>15-0449</e01_01> <e01_02>COptions</e01_02> <e01_03>Northwest Trips</e01_03> <e01_04>2.1</e01_04> </e01> <e02> <e02_01>99-v007</e02_01> <e02_04>30</e02_04> <e02_05>60</e02_05> <E02_06>105</E02_06> <E02_07>135</E02_07> <E02_08>225</E02_08> <E02_09>290</E02_09> <E02_10>360</E02_10> <e02_12>R-2</e02_12> <E02_20>390</E02_20> </e02> <e03> <E03_01>425</E03_01> <E03_02>0</E03_02> </e03> <e04> <e04_03>61106110</e04_03> </e04> <e05> <e05_02>03012015000200</e05_02> <e05_04>03012015000200</e05_04> <e05_05>03012015000200</e05_05> <e05_06>03012015000200</e05_06> <e05_07> </e05_07> <e05_09> </e05_09> <e05_10> </e05_10> <e05_11>03012015001600</e05_11> <e05_13>03012015001600</e05_13> </e05> <e06> <E06_08></E06_08> <E06_11>-10</E06_11> <E06_12>-10</E06_12> <E06_13>-10</E06_13> <E06_16> </E06_16> </e06> </Record> </Header> </EMSDataSet>