XML

"Continuous effort - not strength or intelligence - is the key to unlocking our potential." ==> Winston Churchill

Name:
Location: Bangalore, India

Wednesday, March 29, 2006

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>

0 Comments:

Post a Comment

<< Home