php XPath: case-insensitive text search on the page

Developing parsers for web app “Is it Kosher?“, I found pretty interesting way to parse the content of a html page.

In this case you will get all the TR tags, which child TDs contain a requested keyword. And it doesn’t matter what case you used for the keyword.