How to: XPath search case-insensitive
843834Aug 27 2003 — edited Aug 27 2003Hi
I am doing an xpath search in my DOM tree. The query looks like this:
//employee[contains(string(@name),"abc")].
By default this search is case sensitive. Does anyone know to make this case insensitive.
One solution is to use translate function like this:
//employee[contains(translate(@name,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'),"abc")].
But this would cause problems during internationalisation. This just takes care of english charset.
Any ideas...Anybody?????