Link to home
Start Free TrialLog in
Avatar of intikhabk
intikhabk

asked on

SelectSingleNode IgnoreCase

I have a code in C# and using Xpath to query for a node element...

The issue is SelectSingleNode is case sensitive....so how do I ignorecase...need an example....

ASKER CERTIFIED SOLUTION
Avatar of RameshS
RameshS
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Carl Tawn
If you want pure XPath then I think you will have to resort to using the translate() function:
XmlNode node = doc.SelectSingleNode("//*[translate(name(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')='something']");

Open in new window

Avatar of intikhabk
intikhabk

ASKER

working fine