|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Elements order:
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








