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

Schema with inheritances creates duplicate attributes #545

Open
tsvilans opened this issue Feb 6, 2025 · 0 comments
Open

Schema with inheritances creates duplicate attributes #545

tsvilans opened this issue Feb 6, 2025 · 0 comments

Comments

@tsvilans
Copy link

tsvilans commented Feb 6, 2025

Hi again :)

I'm trying to convert the X3D schema to C# classes. I am importing it by way of a proxy to put it in its own namespace to separate it from another schema.

Because of the inheritance structure, it is creating very many redundant and repeating properties for the derived classes, raising hiding warnings (CS0108). When creating an XmlSerializer, it then runs into multiple instances of the same XML element and fails.

Image

Although I can go through and clean out the redundant properties by hand, it would take a very long time ;)

Am I missing a key setting in XmlSchemaClassGenerator? Is there a workaround/fix for this issue?

Thanks!

Tom

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