title: How to validate an email id in xml schema
body: <p>Hi I have created a schema to check for email id. which can validate if the email id is abc@def.com and adbc@def.co.in and abc@def.co.in.pune 
  But i want to validate only abc@def.com and adbc@def.co.in  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</p>
  
  <pre><code>&lt;xsd:element name="SSEM" minOccurs="0"&gt;
      &lt;xsd:complexType&gt;
          &lt;xsd:sequence&gt;
              &lt;xsd:element name="CNT" minOccurs="0" maxOccurs="unbounded"&gt;
                  &lt;xsd:complexType&gt;
                      &lt;xsd:sequence&gt;
                          &lt;xsd:element name="EM" minOccurs="1" nillable="true" type ="singleEmailID"/&gt;
                      &lt;/xsd:sequence&gt;
                  &lt;/xsd:complexType&gt;
              &lt;/xsd:element&gt;
          &lt;/xsd:sequence&gt;
      &lt;/xsd:complexType&gt;
  &lt;/xsd:element&gt;
  </code></pre>
  
  <p>
          
              
              
          
      </p>
  
  <p>Thanks
  Sunil Kumar Sahoo</p>