I found the way to make case insensitive for XPATH using translate(.,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')
However I would like to make "tag names" case insensitive, not the value.
For example,
<CATALOG>
<CD title="Empire Burlesque"/>
<CD title="empire burlesque"/>
<CD title="EMPIRE BURLESQUE"/>
<CD title="Others blahblah"/>
<CD Title="Others blah"/>
</CATALOG>
I would like to find the path //*[contains(@title, "Others")
and //*[contains(@Title, "others"]
, so I would like to make tag names case insensitive.
I'm using nodejs Xpath using XMLDOM, which supports XPATH 1.0
Is there any way to make tag names case insensitive when using contains(@tag name, "value")? Many thanks for your help.