Hi I have created a schema to check for email id. which can validate if the email id is [email protected] and [email protected] and [email protected] But i want to validate only [email protected] and [email protected] because i think email can have maximum 2 dots after @ symbol so the third one will be invalid email id So how to validate an email id using schema Below is the schema
<xsd:element name="SSEM" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="CNT" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="EM" minOccurs="1" nillable="true" type ="singleEmailID"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Thanks Sunil Kumar Sahoo