Re: Email Address Validation
Hi Guys, I have question regarding Validating the Email in my XML. Can you please help me to give an idea,how should I go about the same. My XML file looks like <EMAIL_TO>senthil@xxxxxxx</EMAIL_TO> <EMAIL_BCC>senthil@xxxxxxx</EMAIL_BCC> <EMAIL_CC>senthil@xxxxxxx</EMAIL_CC>
this is prob not an XSLT question...your best bet is to use regular expressions...perhaps there is some schema approach using XML Schema or RelaxNG...dont know never tried.
As for regex;
xslt 1.0 needs an extension: http://www.exslt.org/regexp/index.html
xslt 2.0 has regex capability built in
google on email and regular expressions...be warned I have not been able to find in 10 years a regex that covers everything.
gl, Jim Fuller
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format