[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Elements order:

  • From: Nicolas LEHUEN <nicolas.lehuen@u...>
  • To: 'Marcus Carr' <mrc@a...>,'Giuseppe Sarno' <gsarno@n...>
  • Date: Thu, 23 Aug 2001 11:46:52 +0200

serializing elist
What if we add an <age> element now ? Then a <gender> element ? The content
model will explode. You need something like the <all> content model of XSDL.
I've heard that there is a way to express this in SGML DTDs, but it has been
dropped in XML, is that true ?

The problem is that when serializing certain data structure, it is not
always easy to guarantee a particular element order.

For example, if you serialize an hashtable by iterating over its cells, you
can't predict the key ordering because it depends on the hash code
algorithm, the size of the hashing array, etc.

This is all the more annoying that for structured data, it does not matter
that the <name> element precedes the <surname> or not.

Regards,
Nicolas

>-----Message d'origine-----
>De : Marcus Carr [mailto:mrc@a...]
>Envoye : jeudi 23 aout 2001 11:31
>A : Giuseppe Sarno
>Cc : 'xml-dev@l...'
>Objet : Re: Elements order:
>
>
>
>Giuseppe Sarno wrote:
>
>> I was wondering if it was possible to have the elements in a XML
>> document
>> to be inserted in a various order and which is the relative rule in
>> the DTD.
>>
>> the rule <!ELEMENT  data  (name,surname)>
>
><!ELEMENT  data  ((name,surname) | (surname, name))>
>
>The bigger question is, why does it matter?
>
>
>--
>Regards,
>
>Marcus Carr                      email:  mrc@a...
>___________________________________________________________________
>Allette Systems (Australia)      www:    http://www.allette.com.au
>___________________________________________________________________
>"Everything should be made as simple as possible, but not simpler."
>       - Einstein
>
>
>
>-----------------------------------------------------------------
>The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
>initiative of OASIS <http://www.oasis-open.org>
>
>The list archives are at http://lists.xml.org/archives/xml-dev/
>
>To subscribe or unsubscribe from this elist use the subscription
>manager: <http://lists.xml.org/ob/adm.pl>
>

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.