Wednesday, September 24, 2014

Xpath if else statement

Now this is something... I would like to never recall again :)

I came across a situation where I had to use if..else like statement in Infopath XPath expression and below post solved that problem beautifully..

http://stackoverflow.com/questions/971067/is-there-an-if-then-else-statement-in-xpath


Some more magic in X Path can be seen here

http://incrementaldevelopment.com/xsltrick/


But even after that.. I would prefer to stay away from X Path ;-)

No comments:

Regex Email validation in c# dot net core

 Use this regex /^_?[a-zA-Z0-9]([a-zA-Z0-9]*[._+-])*[a-zA-Z0-9_]+@(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))*\.[A-...