LinqToXsd ported to .NET Core (targets .NET Standard 2 for generated code and .NET Core 3.1, .NET 5+ for the code generator CLI tool).
41
stars
15
forks
source link
maxOccurs="unbounded", is not respected for elements in choice block #42
Open
ttjorvi opened 2 years ago
When adding a second
Document
element to aMsgHead
element defined in the following schema:the previous entry is removed.
This is happening in
.\LinqToXsdCore\XObjectsCore\API\ChoiceContentModelEntity.cs
when a call is made tothis.RemoveChoices
(line 20).The
maxOccurs="unbounded"
does not seem to be respected.