XPath contains(text(),’some string’) doesn’t work when used with node with more than one Text subnode

I have a small problem with XPath contains with dom4j … Let’s say my XML is <Home> <Addr> <Street>ABC</Street> <Number>5</Number> <Comment>BLAH BLAH BLAH <br/><br/>ABC</Comment> </Addr> </Home> Let’s say I want to find all the nodes that have ABC in the text given the root Element… So the XPath that I would needed to write would … Read more