Re: [xml-dev] Don’t create elements with simple content and attributes
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.
--
John Cowan http://vrici.lojban.org/~cowan [email protected]
All "isms" should be "wasms". --Abbie