On Sun, Oct 31, 2010 at 7:42 AM, Avinash TM <avinas...@gmail.com> wrote:
> Hi All,
>
> I have created a simple xml document i.e., preferences.xml as follows
>
> <?xml version="1.0"?>
> <object>
>  <object name="category" value="cricket">
>   <property name="title">Cricket</property>
>   <property name="subscribers">
>    <element name="avinash"/>
> <element name="prashant"/>
>   </property>
>  </object>
> </object>

This looks like xml generated by a Microsoft product, and not by/for a human..

How is this better than:

<options>
 <category name="cricket" title="Cricket">
  <subscribers>
    <subscriber name="Avinash" />
    <subsriber name="Prashanth" />
  </subscribers>
 </category>
</options>

Why create child nodes when attributes are sufficient?

+PG
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to