I need to export data from an Access (or SQL Server) database into an XML file with very specific syntax.
The reason for the exact syntax is that the folks receiving the XML file will use it to upload data into their system and the syntax must match exactly.
I have a table called FD. FD stands for Facilities Data, and this is the parent, or one side, of a one-to-many. I also have a table call ProductTypes, which contains the products that can be related to each facility in the table FD. Each Facility in FD can have one or more products in the ProductTypes table.
I need to export this data into XML and it needs to look just like this:
<?xml version="1.0" encoding="utf-8"?>
<FacilityData BranchCode="ANT" NumberRows="1" ExportDate="2003-01-01">
<FD>
<FacilityID>fac12345</FacilityID>
...
<ProductTypeList>
<ProductType>LVNR</ProductType>
<ProductType>LVRV</ProductType>
<ProductType>LFNR</ProductType>
<ProductType>ABCD</ProductType>
</ProductTypeList>
...
</FD>
</FacilityData>
How do I setup my data in ACCESS to get the ProductType tags to nest under the ProductTypeList tags (as shown above) when I export it?
If necessary, I can move my data over to SQLServer2000 if that would make this transfer easier.
Thanks for any help you can provide.
The reason for the exact syntax is that the folks receiving the XML file will use it to upload data into their system and the syntax must match exactly.
I have a table called FD. FD stands for Facilities Data, and this is the parent, or one side, of a one-to-many. I also have a table call ProductTypes, which contains the products that can be related to each facility in the table FD. Each Facility in FD can have one or more products in the ProductTypes table.
I need to export this data into XML and it needs to look just like this:
<?xml version="1.0" encoding="utf-8"?>
<FacilityData BranchCode="ANT" NumberRows="1" ExportDate="2003-01-01">
<FD>
<FacilityID>fac12345</FacilityID>
...
<ProductTypeList>
<ProductType>LVNR</ProductType>
<ProductType>LVRV</ProductType>
<ProductType>LFNR</ProductType>
<ProductType>ABCD</ProductType>
</ProductTypeList>
...
</FD>
</FacilityData>
How do I setup my data in ACCESS to get the ProductType tags to nest under the ProductTypeList tags (as shown above) when I export it?
If necessary, I can move my data over to SQLServer2000 if that would make this transfer easier.
Thanks for any help you can provide.