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

86 views Asked by At

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))
0

There are 0 answers