开发者

XSD Schema Validation for 6 or 8 length

could anyone please tell me how to specify the validation rule on XSD for scenario below:

Order number must be exactly either 6 or 8 char开发者_Go百科ater long


<xsd:simpleType name="orderNumber">
    <xsd:restriction base="xsd:token">
        <xsd:pattern value="[0-9]{6}|[0-9]{8}"/>
    </xsd:restriction>
</xsd:simpleType>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜