[lxml-dev] case-insensitive xpath search

Paul Eipper lkraider at gmail.com
Wed May 16 21:22:32 CEST 2007


Hello,

I wonder if this is the right place to ask, but I am trying to run a
case-insensitive search on a XML using lxml XPath.

This is the current search (not case-insensitive):

keyword = "what to find"
o.xpath( '//*[ contains( @*, "%s" ) ]' % keyword )


how could I make that be a case-insensitive search ?


thanks,
--
Paul Eipper
Brasil


More information about the lxml-dev mailing list