On Jan 15, 2009, at 10:26 AM, Stephen Russell wrote:

> <?xml version="1.0"?>
> <product>
> <category>desserts</category>
> <item>Banana Split</item>
> <inventory>
>  <sku>Banadess3nz4Zv</sku>
>  <price>10.43</price>
>  <inventory>0</inventory>
> </inventory>
> <vendor>The Baking Pan</vendor>
> </product>

        I prefer an attribute-based XML. Not only is is more compact, but it  
more closely parallels the way data is stored in an RDBMS. Your XML  
above would be written:

<?xml version="1.0"?>
<product category="desserts">
<item sku="Banadess3nz4Zv" price="10.43" inventory="0" vendor="The  
Baking Pan">Banana Split</item>
</product>



-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to