Questions tagged [rome]

ROME is a set of RSS and Atom Utilities for Java that is open source under the Apache 2.0 license. ROME makes it easy to work in Java with most syndication formats.

ROME is a set of RSS and Atom Utilities for Java that is open source under the Apache 2.0 license. ROME makes it easy to work in Java with most syndication formats.

ROME includes a set of parsers and generators for the various flavors of syndication feeds, as well as converters to convert from one format to another. The parsers can give you back Java objects that are either specific for the format you want to work with, or a generic normalized SyndFeed class that lets you work on with the data without bothering about the incoming or outgoing feed type.

141 questions
3
votes
1 answer

Getting Rome via Maven

I'm working with Maven and I'm looking to start using Rome for a project. When I look for "rome" in my Eclipse's m2 instance, I get a few results: net.java.dev.rome:rome:1.0.0 (2010-04-17) org.rometools:rome-fetcher:1.2 (2011-03-11) <-- most…
Olivier Grégoire
  • 33,839
  • 23
  • 96
  • 137
3
votes
1 answer

Simple way to override ROME's DateParser?

An RSS 2.0 feed I need to process returns date entries which ROME's DateParser cannot parse, delivering null for all dates. More than that, no suitable SimpleDateFormat pattern exists (which could simply be specified in rome.properties), so the…
2
votes
1 answer

How to read "gd:image" element from an Atom feed using ROME

I'm using ROME library to parse Blogger Atom feed and I need to read an URL of the author thumbnail. How can I do this? The wire feed does not contain this element.
Lukasz R.
  • 2,265
  • 1
  • 24
  • 22
2
votes
1 answer

Putting content:encoded in RSS feed using ROME

I'm trying to put some HTML content inside tags using ROME and its modules. So far I've succesfully put mediaRSS and geoRSS in the feed, but my content is not showing up. Here's my code: ContentModule contentModule = new…
artjulian
  • 183
  • 1
  • 7
2
votes
1 answer

Is the ROME RSS parser result list in feed-published order?

i did search for information on this, but unfortunately couldnt find one .. Can anyone help with this ? Example : URL feed = new URL(feedUrl); SyndFeedInput input = new SyndFeedInput(); SyndFeed feedAllData = input.build(new…
Yoseph
  • 41
  • 1
  • 2
2
votes
1 answer

RSS feed parsing through ROME getting null as source

I am using com.sun.syndication apis for parsing the RSS feeds which i need to eventually use in my application. The problem that i am facing is that for some of the RSS e.g. like http://rss.news.yahoo.com/rss/mostviewed Where we have tag with…
vaibhav
  • 3,929
  • 8
  • 45
  • 81
2
votes
1 answer

DateTimeFormatter error for some users only

I have this weird situation where my function using DateTimeFormatter works perfectly for me (i.e. the list of rss feeds is sorted in the order that it was published), but it crashes for some users of my app. At first, I thought maybe there was a…
Code Poet
  • 6,222
  • 2
  • 29
  • 50
2
votes
0 answers

Duplicate jar entry after upgrade to gradle 3.2.0/3.2.1

I am using gradle version 3.1.2 with build tools version 27.0.3. When I build APK with proguard, after upgrade to gradle version 3.2.0/3.2.1, then will get the error: Duplicate jar entry [com/rometools/utils/Alternatives.class]. And the part of…
KpSt
  • 43
  • 8
2
votes
1 answer

Java ROME RSS library and HTML code in RSS description field

I need to include HTML code into my RSS feed. I use Java ROME RSS library: SyndFeed feed = new SyndFeedImpl(); feed.setFeedType("rss_2.0"); feed.setTitle("Title"); feed.setLink("example.com"); feed.setDescription("Description"); List
alexanoid
  • 24,051
  • 54
  • 210
  • 410
2
votes
0 answers

Get image from RSS feed

I'm working on a Java project that reads a RSS from a URL source, parse the date, title and description and convert it into a JSON file to be shown on a TV screen as a HTML5 page. So the steps are: the admin post the source of the RSS feed,…
aseolin
  • 1,184
  • 3
  • 17
  • 35
2
votes
1 answer

Parsing a feed with rss version="2"

I am trying to parse an RSS feed with Java ROME which has this incorrect version: When I change it to "2.0" it parses correctly. How can I work around this using Java ROME? I could subclass RSS20Parser and override isMyType but…
Michiel Borkent
  • 34,228
  • 15
  • 86
  • 149
2
votes
1 answer

Java - Rome: I am trying to parse RSS feed but get a error on some channels

I am trying to work with RSS and parse it. I found the Rome and I am trying to work with it by code: private SyndFeed parseFeed(String url) throws IllegalArgumentException, FeedException, IOException { return new SyndFeedInput().build(new…
user3742622
  • 1,037
  • 3
  • 22
  • 40
2
votes
1 answer

Parsing iTunes RSS using ROME for JAVA

I'm trying to parse a podcast rss feed that contains iTunes specific tags. ROME have a module for doing this which works just fine for getting the info for 'Channel' level tags. ie. It gives you the meta info just fine. This is the code that does…
Tom O'Brien
  • 1,741
  • 9
  • 45
  • 73
2
votes
0 answers

How to create Streaming RSS Feed with Rome?

I am trying to implement an application that exposes API to get RSS feed of the items in the database. I am using Rome to construct the SyndFeed. Here is the code snipped that I am using. Just copying it here as well for easy reference SyndFeed feed…
user1401472
  • 2,203
  • 3
  • 23
  • 37
2
votes
1 answer

Distinguish between HTML/XHTML and plain text in a RSS description-element

Long version: Those familiar to the standardization nightmare of the RSS-family, may know that RSS does not provide you with information if for example the "description" element contains just plain text or html or xhtml. I currently use the ROME-API…
er4z0r
  • 4,711
  • 8
  • 42
  • 62
1 2
3
9 10