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 UTC