How to validate an email id in xml schema

前端 未结 4 1781
春和景丽
春和景丽 2020-12-28 19:33

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 ab

4条回答
  •  被撕碎了的回忆
    2020-12-28 20:04

    You could use a based on a string and with a regex pattern to validate your e-mail addresses:

    
        
            
        
    
    

    Use any e-mail regex you like :-), see some samples on RegexLib.Net.

    Then, use that type in your basic XML schema:

    
    

    Could by checked by online validator: https://www.corefiling.com/opensource/schemaValidate.html

提交回复
热议问题