I am trying to parse RSS feeds using ROME v0.8 (j2sdk1.4.2_07) but no matter which feed I use it always says the same error.
com.sun.syndication.io.ParsingFeedException: Invalid XML: Error on line 14: The element type "meta" must be terminated by the matching end-tag "".
import java.net.URL;
import com.sun.syndication.feed.synd.SyndFeed;
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.XmlReader;
public class RssTest {
public static void main(String[] args) {
try {
System.out.println("starting...");
URL feedUrl = new URL("http://www.abc.net.au/news/feed/51120/rss.xml");
SyndFeedInput input = new SyndFeedInput();
SyndFeed feed = input.build(new XmlReader(feedUrl));
System.out.println("Feed Title: " + feed.getTitle());
} catch (Exception ex) {
System.out.println("Error: " + ex.getMessage());
}
}
}