What are the limits to code generation from XML Schema in C#?

后端 未结 2 1891

I\'ve seen several questions regarding problems with generating classes from XML Schema using xsd.exe, along with suggestions for how to pre-process the schema (oft

2条回答
  •  时光说笑
    2021-01-31 20:17

    It's not a limit to code generation. It's that XML schema does not describe classes. It describes XML, which is a different thing.

    The result is that there is an "impedance mismatch" between XML Schema and C# classes, or Java classes, or any other kind of classes. The two are not equivalent, and are not meant to be.

提交回复
热议问题