I don’t want a search for the string value to be case insensitive. I want to do a search for the node without regard for case sensitivity. If the XML looks like this:
<items>
<ITEM>My text!</ITEM>
</items>
I need something like this to work:
$someXmlDoc->xpath("/items/item/text()");
Currently, only this works:
$someXmlDoc->xpath("/items/ITEM/text()");
There is no case conversion in xpath 1.0 as supported by php (see http://jp.php.net/manual/en/class.domxpath.php)
you could use the translate function, shown below in a very limited sense. note: not recommended as it won’t work for non-english characters
Upd:If node() will not work, try name()
you could also do a union as below