define minimum length column in xsd
-
26-10-2019 - |
Question
i am trying to generate an xsd based on a database created in vs.net 2008. How can i specify the minimum length for a column in my xsd? i want to be able to do this in vs.net
Solution
<xsd:restriction base='xsd:string'>
<xsd:minLength value='0'/>
<xsd:maxLength value='50'/>
</xsd:restriction>
OTHER TIPS
Use restrictions:
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="100"/>
</xs:restriction>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow