Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

XSD generated code with string restrictions

$
0
0

Hello all,

In my application, i am generating .cs code file using XSD.exe tool. I have added few restrictions in my XSD for string data types. These restrictions are nothing but the length of the string element present in the XML file.

How i can get these restrictions in my XSD generated classes as an attribute or any other way? Here is the XSD restriction for which i want some information in the XSD tool generated classes.

<xs:simpleType name="AsciiText_20_FixedLength_Type"><xs:restriction base="xs:string"><xs:maxLength value="20" /></xs:restriction></xs:simpleType>

Thanks in advance,

IamHUM


Viewing all articles
Browse latest Browse all 935

Trending Articles



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