is there a possibility to perform a full text search in a xml file with Xpath and select them using java? I want to select all elements (no mater if it is a comment, node or attribute), which contains a special word. For example: Searching for "bob" I would like to get tag1, bob1 and tag3 as a result
<tag1 name="bob">
<tag2/>
<bob1/>
<tag3 bob="true"/>
</tag1>
If it is possible, I prefer a solution without using an external package. I would be very happy if somebody could help me. I couldn't find anything like this until now. Thank you very much! Kind regards
EDIT: I am searching for a possibility to finde every occurrence of the word "Bob", no matter what function Bob has!