Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking Strings using XPath

Status
Not open for further replies.

gmoorthy

Programmer
Jul 13, 2004
107
US
How can i check if a Password tag has the following:
XML Path:

/XML/User/Password


Contains : Lower Case , Upper Case , Numerals and special characters like @ , ! , # .

Thanks,
 
Heya,

It's just my opinion, but I would think your application should check for that type of constraint on the data before inserting into your dataset.

That being said, I don't believe that pure XML offers regular expressions ... you'd have to use something like XQuery to run a regex pattern on the node and find out if it matches or not.

Sorry I couldn't be of much more assistance.

Greg

Greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top