开发者

XSD.exe warning-error

开发者 https://www.devze.com 2023-01-07 21:51 出处:网络
I have some xsd\'s given to me and i want to generate C# classes to create xml documents based on these classes. I have problem generating classes though from those xsd!

I have some xsd's given to me and i want to generate C# classes to create xml documents based on these classes. I have problem generating classes though from those xsd!

I get schema validation warning: Type'http://ww...../types:ExampleNameType' is not declared, or is not a simple type. Ok they gave me some xsd's declaring the types and these xsd's are named on imports section e.g.:

<xs:import namespace="http://www..../types" schemaLocation="types.xsd"/> 
<xs:import namespace="http://www..../tms" schemaLoca开发者_开发技巧tion="tms.xsd"/>. 

I'm kinda newbie on XML and i cant get this xsd schema thing.

Any help?


Make sure that you put in all xsd files, e.g.:

xsd.exe /c types.xsd tms.xsd root.xsd
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号