Orders Download XML DTD

This is an archive of old posting to the User Forum

Orders Download XML DTD

Postby NS » Sun Sep 28, 2003 7:10 am

Can anyone comment on this:

The order data is essentially a master detail (one to many) data structure.
So, why is the product detail stuck in the middle of the 'shipping' element?
This requires the parser to deal with one to one AND one to many inside of
the same element.

I wish it was more like this:

<ssdownload>
<response></response>
<ssorder>
<master></master>
<detail></detail>
<ssorder>
<ssorder>
<master></master>
<detail></detail>
<ssorder>
</ssdownload>

At the very least, why not close the 'Shipping' element before opening the
'Product' element. And the 'product' element children value should tell the
parser how many Products are on the sale, followed by a 'ProductDetail'
element which should give 11 as the children value.

/ShopSiteOrders/[2]/[4] Shipping 5
/ShopSiteOrders/[2]/[4]/[1] FullName 0
/ShopSiteOrders/[2]/[4]/[2] Company 0
/ShopSiteOrders/[2]/[4]/[3] Phone 0
/ShopSiteOrders/[2]/[4]/[4] Address 6
/ShopSiteOrders/[2]/[4]/[4]/[1] Street1 0
/ShopSiteOrders/[2]/[4]/[4]/[2] Street2 -1
/ShopSiteOrders/[2]/[4]/[4]/[3] City 0
/ShopSiteOrders/[2]/[4]/[4]/[4] State 0
/ShopSiteOrders/[2]/[4]/[4]/[5] Code 0
/ShopSiteOrders/[2]/[4]/[4]/[6] Country 0
/ShopSiteOrders/[2]/[4]/[5] Product 11 0
/ShopSiteOrders/[2]/[4]/[5]/[1] ProdType 0
/ShopSiteOrders/[2]/[4]/[5]/[2] Name 0
/ShopSiteOrders/[2]/[4]/[5]/[3] SKU 0
/ShopSiteOrders/[2]/[4]/[5]/[4] Taxable 0
/ShopSiteOrders/[2]/[4]/[5]/[5] Quantity 0
/ShopSiteOrders/[2]/[4]/[5]/[6] ItemPrice 0
/ShopSiteOrders/[2]/[4]/[5]/[7] Total 0
/ShopSiteOrders/[2]/[4]/[5]/[8] Weight -1
/ShopSiteOrders/[2]/[4]/[5]/[9] Dimension -1
/ShopSiteOrders/[2]/[4]/[5]/[10] OrderOption -1
/ShopSiteOrders/[2]/[4]/[5]/[11] CustomerText -1


Any thoughts?

David Clarke
NS
 

Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 47 guests