开发者

define minimum length column in xsd

开发者 https://www.devze.com 2023-02-18 10:40 出处:网络
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 t开发者_开发问答o do this in vs.net<xsd:res

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 t开发者_开发问答o do this in vs.net


<xsd:restriction base='xsd:string'>
   <xsd:minLength value='0'/>
   <xsd:maxLength value='50'/>
  </xsd:restriction>


Use restrictions:

<xs:restriction base="xs:integer">
      <xs:minInclusive value="0"/>
      <xs:maxInclusive value="100"/>
</xs:restriction>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号