contains() works fine for me. try
//title[contains(.,'GARNISH')] In Peace, Saqib Ali http://www.seagate.com/cheetah/ |---------+---------------------------> | | "Mohamed Abdel | | | Hamid" | | | <[EMAIL PROTECTED]| | | rg.net> | | | No Phone Info | | | Available | | | | | | 04/02/2003 10:39| | | AM | | | Please respond | | | to xindice-users| | | | |---------+---------------------------> >-------------------------------------------------------------------------------------------------------------------------------| | | | To: <xindice-users@xml.apache.org> | | cc: | | Subject: Search problem | >-------------------------------------------------------------------------------------------------------------------------------| Hi All, i have a problem when i try to search for word inside document. i use xindice-1.1b and when i try to use the xpath query : //title[contains(text(),'GARNISH')] i get error message : A error occur org.apache.xpath.compiler.OpMap.getOpMap()[I i can search for element or attribute easy using another expression, but what i need is to search for word inside the document i read that i should to use : contains(text(),'word') but when i use contains i get the previous error. anyone can help me