用 正则表达式 限定XML simpleType 定义
<xsd:simpleType name="ResTrictions"> <xsd:restriction base="xsd:string"> <xsd:pattern value="\s*0x[0-9,a-z,A-Z]{8}\s*|\s*"/> </xsd:restriction> </xsd:simpleType>
匹配各种空值或者4个byte的16进制数
<test></test>
<test>0x14223344</test>
作者:
HarlanC
博客地址:
http://www.cnblogs.com/harlanc/
个人博客:
http://www.harlancn.me/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出,
原文链接