OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] ConciseXML syntax

[ Lists Home | Date Index | Thread Index ]

[Mike Plusch]
> 4. Attributes keys and attribute values can be any object,
>     not just strings.
> ConciseXML:
> <person name="Mike" age=28 married=true birth=<date 1968 1 10/> />
> XML 1.0:
> <person>
>  <field key="name">"Mike"</field>
>  <field key="age">28</field>
>  <field key="married">true</field>
>  <field key="birth">
>     <date><field key="year">1968</field>
>                <field key="month">1</field>
>                <field key="day">10</field>
>     </date>
>  </field>
> </person>

That is a ridiculous comparison.  Better:

XML 1.0:
<person name="Mike" age="28" married="true" birth="1968 1 10"/>

In the ConciseXML version of the date attribute, the data is a string that
has to be parsed, and you could just as well do the same in a reasonable XML
version.  There is no use in contriving stupid XML examples to make the
comparison more favorable to ConciseXML.


Tom P


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS