My XML looks a bit like this:
<root>
<child1>
<grandchild1>{tagID1}<grandchild1/>
<grandchild2>{tag2}<grandchild2/>
</child1>
<child2>{newtag1}<child2/>
<root/>
I am looking to retrieve all elements whose text() is like "{*}" i.e. contains a string between 2 curlies, but am not too familiar with xpath.
I thought the xquery syntax would be something like
"//*[matches(., '{*}')]"
but that is failing with unknown method "-->matches(.<--"
I'd be grateful if someone could correct me please.