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

Re: how to guarantee elements order

From: <noah_mendelsohn@us.ibm.com>
Date: Fri, 9 Feb 2007 15:21:24 -0500
To: "Yuri Danielyan" <Yuri.Danielyan@synopsys.com>
Cc: xmlschema-dev@w3.org
Message-ID: <OFCF190798.1D235DD2-ON8525727D.006F91D9-8525727D.006FC2D9@lotus.com>

In schema 1.0, I believe the answer is: no, you can't do this.

In schema 1.1, presuming the design remains as planned, you can do it 
using assertions [1].

 Noah

[1] http://www.w3.org/TR/xmlschema11-1/#cAssertions

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------








"Yuri Danielyan" <Yuri.Danielyan@synopsys.com>
Sent by: xmlschema-dev-request@w3.org
02/09/2007 06:22 AM
 
        To:     <xmlschema-dev@w3.org>
        cc:     (bcc: Noah Mendelsohn/Cambridge/IBM)
        Subject:        how to guarantee elements order



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>

Thank you
Yuri
Received on Friday, 9 February 2007 20:20:55 UTC

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