<xs:element name="AadhaarCardNo" minOccurs="0"> <xs:simpleType> <xs:restriction base="nonEmptyString"> <xs:pattern value="[0-9]{12}" /> </xs:restriction> </xs:simpleType> </xs:element>