Quantcast
Channel: xsd2Code community edition .net class generator from XSD schema
Viewing all articles
Browse latest Browse all 543

New Post: Bug: annotations are only emitted to C# when they are for XSD attributes, not for elements, types etc.

$
0
0
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:
  1. Install xsd2code and Visual Studio.
  2. Put all these files in one directory.
  3. Run generate-C#-from-XSD-annotations.bat.
  4. Diff annotations.xsd.exe.cs and annotations.xsd2code.exe.cs.
  5. Observe only 1 spot in annotations.xsd2code.exe.cs has the annotations converted to C# comments.
--jeroen

Viewing all articles
Browse latest Browse all 543


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>