Relative Content

Tag Archive for c#xsd-validationxsd.exexsd2code

Generate C# classes from XSd schema

I was trying to generate C# classes from XSd schema, tried using xsd.exe, svcuil.exe and Xsd2code++ trial version(In Visual studio Professional 2019).
With all the above tools below errors are generating.
Error: Schema validation failed:
The ‘http://www.w3.org/2001/XMLSchema:attributeGroup’ element is not supported in this context.
The ‘http://www.w3.org/2001/XMLSchema:complexType’ element is not supported in this context.