XML Question for SS Staff
Posted: Fri Oct 31, 2003 12:34 pm
This XML strikes me as odd.
The number of order options is not self describing.
The only way to know how many order options there are for a given product is
to
subtract 10 from the Product Children Count.
Which could lead to future data errors if you add to the products xml node.
The fact that there can be a variable number of Order Options
would lead me to think Order Options needs a node of
its own.
CURRENT SHOP SITE XML:
/ShopSiteOrders/[18]/[4]/[7] Product 12
/ShopSiteOrders/[18]/[4]/[7]/[10] OrderOption 2
/ShopSiteOrders/[18]/[4]/[7]/[10]/[1] SelectedOption
/ShopSiteOrders/[18]/[4]/[7]/[10]/[2] OptionPrice
/ShopSiteOrders/[18]/[4]/[7]/[11] OrderOption 2
/ShopSiteOrders/[18]/[4]/[7]/[11]/[1] SelectedOption
/ShopSiteOrders/[18]/[4]/[7]/[11]/[2] OptionPrice
/ShopSiteOrders/[18]/[4]/[7]/[12] CustomerText
ISN'T THIS BETTER:
/ShopSiteOrders/[18]/[4]/[7] Product 12
/ShopSiteOrders/[18]/[4]/[7]/[10] OrderOptions 2
/ShopSiteOrders/[18]/[4]/[7]/[10]/[1][1] SelectedOption
/ShopSiteOrders/[18]/[4]/[7]/[10]/[1][2] OptionPrice
/ShopSiteOrders/[18]/[4]/[7]/[10]/[2][1] SelectedOption
/ShopSiteOrders/[18]/[4]/[7]/[10]/[2][2] OptionPrice
/ShopSiteOrders/[18]/[4]/[7]/[11] CustomerText
I am bring this up because I think the XML interface is GREAT!
Thanks
David Clarke
The number of order options is not self describing.
The only way to know how many order options there are for a given product is
to
subtract 10 from the Product Children Count.
Which could lead to future data errors if you add to the products xml node.
The fact that there can be a variable number of Order Options
would lead me to think Order Options needs a node of
its own.
CURRENT SHOP SITE XML:
/ShopSiteOrders/[18]/[4]/[7] Product 12
/ShopSiteOrders/[18]/[4]/[7]/[10] OrderOption 2
/ShopSiteOrders/[18]/[4]/[7]/[10]/[1] SelectedOption
/ShopSiteOrders/[18]/[4]/[7]/[10]/[2] OptionPrice
/ShopSiteOrders/[18]/[4]/[7]/[11] OrderOption 2
/ShopSiteOrders/[18]/[4]/[7]/[11]/[1] SelectedOption
/ShopSiteOrders/[18]/[4]/[7]/[11]/[2] OptionPrice
/ShopSiteOrders/[18]/[4]/[7]/[12] CustomerText
ISN'T THIS BETTER:
/ShopSiteOrders/[18]/[4]/[7] Product 12
/ShopSiteOrders/[18]/[4]/[7]/[10] OrderOptions 2
/ShopSiteOrders/[18]/[4]/[7]/[10]/[1][1] SelectedOption
/ShopSiteOrders/[18]/[4]/[7]/[10]/[1][2] OptionPrice
/ShopSiteOrders/[18]/[4]/[7]/[10]/[2][1] SelectedOption
/ShopSiteOrders/[18]/[4]/[7]/[10]/[2][2] OptionPrice
/ShopSiteOrders/[18]/[4]/[7]/[11] CustomerText
I am bring this up because I think the XML interface is GREAT!
Thanks
David Clarke