Scala: XML Attribute parsing -


I am trying to parse an RSS feed that looks like this for the "date" attribute:

  & lt; RSS version = "2.0" & gt; & Lt; Channel & gt; & Lt; Items & gt; & Lt; Y: c date = "aa" & gt; & Lt; / Y: c & gt; & Lt; / Item & gt; & Lt; / Channel & gt; & Lt; / Rss & gt;  

I tried several different versions of this: (RSS feeds include RSS data)

  println (((rssFeed \\ "  

but nothing works

In this "Y", and is a name prefix. It's not part of the name. Additionally, attributes are referred to with '@' Try it:

  println (((rssFeed \\ "channel" \\ "item" \ "c" \ "@ Date "). ToString))  

Comments