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

Re: how to guarantee elements order

From: C. M. Sperberg-McQueen <cmsmcq@acm.org>
Date: Tue, 13 Feb 2007 13:55:57 -0700
Message-Id: <F53143E0-9DEF-4D19-B5D1-832FDC6C1C3A@acm.org>
Cc: "C. M. Sperberg-McQueen" <cmsmcq@acm.org>, <xmlschema-dev@w3.org>
To: Yuri Danielyan <Yuri.Danielyan@synopsys.com>
Re: how to guarantee elements order


On 9 Feb 2007, at 04:22 , Yuri Danielyan wrote:

>
> Is there a way to guarantee elements order in the DOM object loaded  
> from respective to below text XML fragment.
>
> <Root >
>    <Arg>Arg1</Arg>
>    <Arg>Arg2</Arg>
>    <Arg>Arg3</Arg>
> </Root>

I'm not sure what you mean.  What do you wish to guarantee?

Do you wish to guarantee that if the XML takes the form you show,
then the arguments will be in that same order in the DOM?  That's
guaranteed by the DOM.

Do you wish to guarantee that the arguments are in that order
in the DOM, that they will be in that order in the XML when you write
it out?  That's also guaranteed by the DOM.

Or is there some other thing you wish to guarantee?

--C. M. Sperberg-McQueen
Received on Tuesday, 13 February 2007 20:56:09 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.