I\'m trying to parse a rss feed that looks like this for the attribute \"date\":
-
Also, think about the difference between \ and \\. \\ looks for a descendent, not just a child, like this (note that it jumps from channel to c, without item):
scala> (rssFeed \\ "channel" \\ "c" \ "@date").text
res20: String = AA
Or this sort of thing if you just want all the < c > elements, and don't care about their parents:
scala> (rssFeed \\ "c" \ "@date").text
res24: String = AA
And this specifies an exact path:
scala> (rssFeed \ "channel" \ "item" \ "c" \ "@date").text
res25: String = AA