See this gist: https://gist.github.com/jpluimers/4247df4e0aa01c1c190a
and this blog post: http://wiert.me/2015/07/22/example-of-xsd2code-only-handling-xsd-annotations-for-attributes-not-for-elements-types-and-other-places-where-they-can-be-used-in-an-xsd/
Example of xsd2code only handling xsd annotations for attributes, not for elements, types and other places where they can be used in an XSD.
Steps to reproduce:
and this blog post: http://wiert.me/2015/07/22/example-of-xsd2code-only-handling-xsd-annotations-for-attributes-not-for-elements-types-and-other-places-where-they-can-be-used-in-an-xsd/
Example of xsd2code only handling xsd annotations for attributes, not for elements, types and other places where they can be used in an XSD.
Steps to reproduce:
- Install xsd2code and Visual Studio.
- Put all these files in one directory.
- Run
generate-C#-from-XSD-annotations.bat
. - Diff
annotations.xsd.exe.cs
andannotations.xsd2code.exe.cs
. -
Observe only 1 spot in
annotations.xsd2code.exe.cs
has the annotations converted to C# comments.