XPaths are extremely useful. I actually enjoy writing them, much like I enjoy writing regular expressions. In fact, I consider both to return manifold the modest investment they require to learn well.
XPath : XML :: regex : text
XPath : XML :: regex : text
(But along with relational algebra, they are among the few abstractions that work really well)