Lists Home |
Date Index |
- To: <email@example.com>
- Subject: Re: [xml-dev] <xsd:sequence>: whats the advantage?
- From: "Bryce K. Nielsen" <firstname.lastname@example.org>
- Date: Tue, 3 May 2005 08:41:29 -0600
- References: <200505030349859.SM02832@mail.oasis-open.org>
> > 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
> in Java, except to do iteration.
> Michael Kay
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