H
herr_johan
Hello!
I have a question regarding how to export well formed XML from a query that I have created. The query is callde "Family" and results in following table:
| ParantName | ChildName | ChildAge | LastName |
|------------|-----------|----------|----------|
| James | Carl | 12 | Sky |
| James | Lisa | 9 | Sky |
| James | Eric | 11 | Sky |
------------------------------------------------
When I choose to export it as XML, I get the following result:
<Family>
<ParantName>James</ParantName>
<ChildName>Carl</ChildName>
<ChildAge>12</ChildAge>
<LastName>Sky</LastName>
</Family>
<Family>
<ParantName>James</ParantName>
<ChildName>Lisa</ChildName>
<ChildAge>9</ChildAge>
<LastName>Sky</LastName>
</Family>
<Family>
<ParantName>James</ParantName>
<ChildName>Eric</ChildName>
<ChildAge>11</ChildAge>
<LastName>Sky</LastName>
</Family>
But I would like it to be more like:
<Family>
<ParantName>James</ParantName>
<LastName>Sky</LastName>
<Children>
<Child>
<ChildName>Carl</ChildName>
<ChildAge>12</ChildAge>
</Child>
<Child>
<ChildName>Lisa</ChildName>
<ChildAge>9</ChildAge>
</Child>
<Child>
<ChildName>Eric</ChildName>
<ChildAge>11</ChildAge>
</Child>
</Family>
How do I make settings for this in Access 2003?