How to restrict null values in XML tags
The following declartion will restrict the tag values to only a to z, A to Z and 1 to 9 and no other values can be entered into it.
<element name="first">
<simpleType>
<restriction base="string">
<pattern value="([a-zA-Z1-9])+"/>
</restriction>
</simpleType>
</element>
<element name="first">
<simpleType>
<restriction base="string">
<pattern value="([a-zA-Z1-9])+"/>
</restriction>
</simpleType>
</element>
0 Comments:
Post a Comment
<< Home