How to check on nodes' content in Text.XML.Cursor?

Multi tool use


How to check on nodes' content in Text.XML.Cursor?
I have this XPath works with xmllint
//td[text() = 'USD']/../td[6]/text()
Now I want it to be done in Haskell. But following (not complete of the original XPath) does not work at all. I got empty list error on head.
cur $// element "td" &// check (c → "USD" ≡ head (c $// content))
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.