What is the difference between an xs:group and an xs:sequence in XML Schema? When would you use one or the other?
What is the difference between an xs:group and an xs:sequence in XML Schema? When
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
xs:sequence– together withxs:choiceandxs:all– is used to define the valid sequences of XML element in the target XML. E.g. the schema for this XML:is something like:
xs:groupis used to define a named group of XML element following certain rules that can then be referenced in different parts of the schema. For example if the XML is:you can define a group for the common sub-elements:
and then use it: