mamift / LinqToXsdCore

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).
Microsoft Public License
43 stars 15 forks source link

Updated to fix ambiguous types #16

Closed justinoverton closed 4 years ago

justinoverton commented 4 years ago

Updated to fix ambiguous types where an element is a base type and a derrived type is used.

Example: ActionInfo and Commands are elements where the schema uses a base type, but the actual document uses a child type.

<Action xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://example.org/AbstractTest">
      <ActionInfo  id="7" xsi:type="Record" />
      <Commands  value="updated" xsi:type="UpdateCommand"/>
    </Action>
justinoverton commented 4 years ago

There was already 1 failing test when I pulled master.

mamift commented 4 years ago

Hello, I just wanted to mention I have seen this and am working to correct the failing test before merging this.