标签: xml xsd xsd-validation xml-validation
我目前在XSD中具有此功能:
<xs:element name="qty" maxOccurs="1" minOccurs="1" />
如何添加仅允许Qty的值在100到2000之间的规则?
Qty
答案 0 :(得分:0)
将comboBox1.Items.AddRange(Form2.AlllValuesFromColumn.ToArray()); 与xs:restriction一起使用:
comboBox1.Items.AddRange(Form2.AlllValuesFromColumn.ToArray());
xs:restriction
xs:{min|max}{In|Ex}clusive