Scala: XML Attribute parsing
Posted
by Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2010-05-17T17:43:11Z
Indexed on
2010/05/17
23:00 UTC
Read the original article
Hit count: 214
I'm trying to parse a rss feed that looks like this for the attribute "date":
<rss version="2.0">
<channel>
<item>
<y:c date="AA"></y:c>
</item>
</channel>
</rss>
I tried several different versions of this: (rssFeed contains the RSS data)
println(((rssFeed \\ "channel" \\ "item" \ "y:c" \"date").toString))
But nothing seems to work. What am I missing?
Any help would really be appreciated!
© Stack Overflow or respective owner