-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xs:choice duplicated element #378
Comments
Support for choices is incomplete, see https://github.com/mganss/XmlSchemaClassGenerator#choice-elements <xs:complexType>
<xs:sequence>
<xs:element name="MinAge" type="PersonAgeType" minOccurs="0">
</xs:element>
<xs:element name="MaxAge" type="PersonAgeType" minOccurs="0">
</xs:element>
</xs:sequence>
</xs:complexType> |
Another example from the standard schema fpml-valuation-4.6.xsd (e.g. one cannot change it). It generates collection property <xsd:group name="AdjustedAndOrUnadjustedDate.model">
<xsd:annotation>
<xsd:documentation xml:lang="en">Contains at least one of an adjusted date and and unadjusted date, using the usual meanings of those terms.</xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:sequence>
<xsd:element name="unadjustedDate" type="xsd:date" />
<xsd:element name="adjustedDate" type="xsd:date" minOccurs="0" />
</xsd:sequence>
<xsd:element name="adjustedDate" type="xsd:date" />
</xsd:choice>
</xsd:group> |
@michaelplavnik Could this be a duplicate of #475? |
"xs:choice" with same names in branches causes error "The XML element '...' from namespace '...' is already present in the current scope."
For example:
gives
"MaxAge" is duplicated.
The text was updated successfully, but these errors were encountered: