java xpath text contains ignore case code example Example: case sensitive text in xpath /html/body//text()[contains(translate(., 'TES', 'tes'), 'test')]