Re: [xml-dev] Don’t create elements with simple content and attributes

From
Ihe Onwuka <>
To
John Cowan <>
Date
2018-09-29T00:14:53Z
ID
<CALfs7+z4Ymj0NQe=>
Thread
Re: [xml-dev] Don’t create elements with simple content and attributes


On Fri, Sep 28, 2018 at 3:45 PM John Cowan <[email protected]> wrote:


On Fri, Sep 28, 2018 at 11:43 AM Ihe Onwuka <[email protected]> wrote:
 
<Cost>
    
<Currency>USD</Currency>
    
<Amount>8.95</Amount>
     <Currency>GBP</Currency>
    
<Amount>6.95</Amount>  
</Cost>  

Here the relationship between the Amounts and the currency that applies to (labels) them is the immediate preceding sibling.

I would have no idea what that meant either.  If an article of commerce has more than one cost, it should be put in a separate Cost element with some distinguishing feature such as country.


When did you last see a duty free shop or an in flight magazine include country the price applied to on it's merchandise.