Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Schema: group vs. sequence

Status
Not open for further replies.

HisMightiness

Programmer
Mar 17, 2004
54
US
I am just wondering if I am understanding something correctly... Do "group" and "sequence" do the same thing, with the only difference being that sequence requires the elements to appear in order?

Will
 
>[tt]Do "group" and "sequence" [blue]do the same thing[/blue], with the only difference being that sequence requires the elements to appear in order? [/tt]
I think I am on the safer side to say no than yes.

Group is just like a building block and sequence its steel structure... and there are other things like ciments... to build the block. Group are at the level of "global" elements and types. "Global" because group must be defined global. They are the device to favour re-use hence the building block analogy. Sequence is in their jardon a connector to build a particle which consists of a child structure. There are other connectors like all and choice. Those are sequence's most appropriate homologues. Group is more like an element and a type (they again are its most appropriate homologues) because they all can be assigned a name and be referenced in the schema (hence, favorizing re-use.)

Impossible for me to explain more accurately and clearly because clarity takes effort. I have made not enough to understanding well enough let alone explaining.
 
>The term sequence to me, infers that the child elements are required to be in a certain order. Is this true?
That is so: those guys sit in the committee aren't there for nothing.
 
The orderness of sibling elements below the parent (unique because of the fundamental tree structure) is either complete (within "sequence" connector) or none (within "all" connector). The effective order is partial just because the mixture of their use, sequence and all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top