[Home] [By Thread] [By Date] [Recent Entries]

  • To: <xml-dev@l...>
  • Subject: Re: <xsd:sequence>: whats the advantage?
  • From: "Bryce K. Nielsen" <bryce@s...>
  • Date: Tue, 3 May 2005 08:41:29 -0600
  • References: <200505030349859.SM02832@m...>

> > Is there any advantage of using <xsd:sequence> in schema
> > except ordering
> > of elements?
>
> This is a bit like asking whether there is any advantage in using
for-loops
> in Java, except to do iteration.
>
> Michael Kay
> http://www.saxonica.com/
>

I think he was trying to compare sequence vs. the other two constructs, the
pros/cons of the different constructs. To answer his question, that is the
point of xsd:sequence nodes, the enforcement of ordering. It's also the
typical default construct used for elements, since xsd:choice nodes or for,
well, choosing between one node of the group and xsd:all nodes have other
restrictions that most people have a hard time working around.

Bryce K. Nielsen
SysOnyx, Inc. (www.sysonyx.com)
Read the Genesis of xmlHack, the Simple XML Editor
http://www.sysonyx.com/xml-editor


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member