Java – Scala / lift RSS feed
•
Java
I'm looking for a simple one or two lines of code to get this PHP RSS feed:
I'm using Scala / lift to relate to NetBeans or eclipse
Solution
If you don't want to disturb exceptions or readability, the simplest thing you can do is this:
val RSSFeed = XML.load( (new URL(FeedUrl)).openConnection.getInputStream )
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码