Skip to content
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

maxOccurs="unbounded", is not respected for elements in choice block #42

Open
ttjorvi opened this issue Apr 6, 2022 · 0 comments
Open

Comments

@ttjorvi
Copy link

ttjorvi commented Apr 6, 2022

When adding a second Document element to a MsgHead element defined in the following schema:

	<element name="MsgHead">
		<complexType>
			<sequence>
				<element ref="mh:MsgInfo"/>
				<choice>
					<element ref="mh:Document" maxOccurs="unbounded"/>
					<element ref="mh:PatientReport" maxOccurs="unbounded">
						<annotation>
							<documentation>xxx</documentation>
						</annotation>
					</element>
				</choice>
				<element ref="ds:Signature" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>

the previous entry is removed.

This is happening in .\LinqToXsdCore\XObjectsCore\API\ChoiceContentModelEntity.cs when a call is made to this.RemoveChoices (line 20).

The maxOccurs="unbounded" does not seem to be respected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant