W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2007

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>

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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:11 UTC