Generate class from schema with restrictions???
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I am designing an XSD schema in which there is a field called SSN. This field has some restrictions like maxlength, type, format etc. All that is described in schema itself. Schema sample attached. Now, I generate a C# class out of this schema using XSD.exe or XSDGen tool. They do create a class but none of them incorporates the restrictions (validation) specified in schema. Basically, I want object class to have a way to validate those restrictions. How can I generate a class from schema which also includes the restriction on fields? Thanks Pankaj Here is the schema sample ---