You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sequence element specifies that the child elements must appear in a sequence
First, this doesn't really make sense from a domain perspective.
Second, most consuming applications probably ignore that.
@ajslater brought up that we could replace it with xs:all, which represents an unordered list. It has an additional constraint in XSD 1.0 of limiting elements to 0 or 1 occurrence, but all the elements in the existing schema already have minOccurs="0" maxOccurs="1", so that's fine.
This would make the validation of the XML using the XSD schema easier, where it would probably throw errors if elements are out of order.
The text was updated successfully, but these errors were encountered:
Someone on Discord (i think @therobbiedavis) brought up the point that the current elements are contained in a
xs:sequence
.The sequence would mean that (source):
@ajslater brought up that we could replace it with
xs:all
, which represents an unordered list. It has an additional constraint in XSD 1.0 of limiting elements to 0 or 1 occurrence, but all the elements in the existing schema already haveminOccurs="0" maxOccurs="1"
, so that's fine.This would make the validation of the XML using the XSD schema easier, where it would probably throw errors if elements are out of order.
The text was updated successfully, but these errors were encountered: