Difference between <all> <sequence> <select> and <group> in XSD?

What is the difference between <all> <sequence> <choice> and <group>an XML schema?

+4
source share
1 answer

When to Use xsd:all, xsd:sequence, xsd:choiceor xsd:group:

  • Use xsd:allwhen all children should be present regardless of order.
  • Use xsd:sequencewhen children should be present at their associated constraints and order.
  • Use xsd:choicewhen one of the children should be present.
  • xsd:group , XSD.

, xsd:all, xsd:sequence xsd:choice .

+6

All Articles