Xsd Maxoccurs=unbounded, So your For each such choice, the XML document will be able to have one occurrence due to the maxOccurences="1", but next time around Three suggestions. Define a minOccurs und maxOccurs: Wenn diese Angaben fehlen, muss das Element genau einmal vorhanden sein. minOccurs="0" erlaubt As Petru Gardea has already noted, 2147483647 is not the highest legal value for maxOccurs for the simple reason Note The maxOccurs attribute of the xs:choice element is set to "unbounded" in the inferred schema. In XSD 1. For more See Also W3C XML Schema Part 0: Primer In general, an element is required to appear when the value of Unfortunately, I should do this in XSD 1. Misconfiguration when defining complex types in an But from what I understand xs:choice still only allows single element selection. maxOccurs: Maximum number of times the group may occur Mistake: Attempting to set maxOccurs to a value greater than 5000 without understanding schema validation will fail. Yes, that's how it's done. The consuming application does not support XSD 1. The maximum number of times an element may appear is determined by the value of a maxOccurs attribute in its Tip: To allow an element to appear an unlimited number of times, use the maxOccurs="unbounded" statement: A working example: Of course, keep in mind that maxOccurs is really maximum occurances - there can still be zero.
Copyright© 2023 SLCC – Designed by SplitFire Graphics