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
1
vote
1 answer

How read item tag with rome rss?

Consider response sample from rss url:
Cherry
  • 31,309
  • 66
  • 224
  • 364
1
vote
2 answers

Periodically updating rss feed in rome

How would I go about fetching stories with rome. i.e. I have the feed how to get an updated version of the feed. I am currently calling: URL url = new URL("http://feeds.bbci.co.uk/news/rss.xml"); XmlReader reader = null; SyndFeedInput…
Alex
  • 690
  • 1
  • 9
  • 29
1
vote
1 answer

Using feed:// in rome

So I am using rome and accessing a feed with the following url URL url = new URL("feed://rss.cnn.com/rss/cnn_topstories.rss"); reader = new XmlReader(url); (unrelated code edited out) however, I get the following exception: Exception in thread…
Alex
  • 690
  • 1
  • 9
  • 29
1
vote
1 answer

Using Rome to aggregate RSS feeds and Description not getting encoded. Why?

When I specify the encoding for my new feed as UTF-8 (matches my sources), my output feed has no encoding for the emdash and curly quotes. If I specify ISO-8859-1 for encoding (but I don't want to), the characters are encoded. How to I force it to…
Robert
  • 11
  • 2
1
vote
1 answer

How should CDATA block parsing in XML behave?

Given this XML snippet: <![CDATA[Resizing & Cropping GIF and PNG images issue]]> What is the correct string that should be parsed by the XML parser for the element content? 1. "Resizing & Cropping GIF and PNG images issue" 2.…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/html" class="post-tag grid--cell" title="show questions tagged 'html'" rel="tag">html</a> <a href="../../questions/tagged/xml" class="post-tag grid--cell" title="show questions tagged 'xml'" rel="tag">xml</a> <a href="../../questions/tagged/escaping" class="post-tag grid--cell" title="show questions tagged 'escaping'" rel="tag">escaping</a> <a href="../../questions/tagged/cdata" class="post-tag grid--cell" title="show questions tagged 'cdata'" rel="tag">cdata</a> <a href="../../questions/tagged/rome" class="post-tag grid--cell" title="show questions tagged 'rome'" rel="tag">rome</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 23 '11 at 18:09">asked Feb 23 '11 at 18:09</time> <a href="../../users/314599/amos" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/314599.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Amos" /> </a> <div class="s-user-card--info"> <a href="../../users/314599/amos" class="s-user-card--link">Amos</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,403</li> <li class="s-award-bling s-award-bling__gold" title="2 gold badges">2</li> <li class="s-award-bling s-award-bling__silver" title="13 silver badges">13</li> <li class="s-award-bling s-award-bling__bronze" title="19 bronze badges">19</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-45983720"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/45983720/malformedbytesequenceexception-parsing-rss-feed-with-rome" class="question-hyperlink">MalformedByteSequenceException parsing RSS feed with ROME</a></h3> <div class="excerpt">Im getting a MalformedByteSequenceException running a JSF application which makes use of the Rome Rss-parsing Lib: [2017-08-31T15:54:01.241+0200] [glassfish 5.0] [SEVERE] [] [] [tid: _ThreadID=101 _ThreadName=Thread-9] [timeMillis: 1504187641241]…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/java" class="post-tag grid--cell" title="show questions tagged 'java'" rel="tag">java</a> <a href="../../questions/tagged/junit" class="post-tag grid--cell" title="show questions tagged 'junit'" rel="tag">junit</a> <a href="../../questions/tagged/rss" class="post-tag grid--cell" title="show questions tagged 'rss'" rel="tag">rss</a> <a href="../../questions/tagged/rome" class="post-tag grid--cell" title="show questions tagged 'rome'" rel="tag">rome</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 31 '17 at 14:17">asked Aug 31 '17 at 14:17</time> <a href="../../users/3488735/gewure" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3488735.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Gewure" /> </a> <div class="s-user-card--info"> <a href="../../users/3488735/gewure" class="s-user-card--link">Gewure</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,208</li> <li class="s-award-bling s-award-bling__silver" title="18 silver badges">18</li> <li class="s-award-bling s-award-bling__bronze" title="31 bronze badges">31</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-39372152"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status "> <strong>0</strong> answers </div> </div> </div> <div class="summary"> <h3><a href="../../questions/39372152/namespace-in-rometools" class="question-hyperlink">Namespace in rometools</a></h3> <div class="excerpt">I am using rometools for rss feeds with SyndFeed and SyndFeedOutput. Everything works great. But now I need to change the namespace. Currently there is the followings: <rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"> And I would need…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/java" class="post-tag grid--cell" title="show questions tagged 'java'" rel="tag">java</a> <a href="../../questions/tagged/rss" class="post-tag grid--cell" title="show questions tagged 'rss'" rel="tag">rss</a> <a href="../../questions/tagged/rome" class="post-tag grid--cell" title="show questions tagged 'rome'" rel="tag">rome</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 07 '16 at 14:07">asked Sep 07 '16 at 14:07</time> <a href="../../users/3544013/user3544013" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3544013.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="user3544013" /> </a> <div class="s-user-card--info"> <a href="../../users/3544013/user3544013" class="s-user-card--link">user3544013</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">11</li> <li class="s-award-bling s-award-bling__bronze" title="1 bronze badges">1</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-37721580"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>1</strong></span> <div class="viewcount">vote</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/37721580/can-t-read-image-url-from-rss-using-rome-api" class="question-hyperlink">Can't read image URL from RSS using Rome API</a></h3> <div class="excerpt">My question almost the same as it is in the topic I found - Unable to read image URL from feed using Rome API except 2 conditions. So, how to read image url: <item> <title>Dementia in care homes 'more common' Eight out of…
Volodymyr
  • 113
  • 1
  • 8
1
vote
1 answer

rss rome create entries with tag

Where can i find a simple tutorial on how to generate tags in an rss using rome? I've been reading throug their documentation but it is only about read and parse from a feed. And their javadoc is minimal... Thank you! Udo.
ssedano
  • 8,322
  • 9
  • 60
  • 98
1
vote
1 answer

Java SyndFeedInput parse feed

I want to parse non-standard feed using SyndFeedInput 4 - Fleetmatics Group plc (0001526160) (Issuer)
Tester
  • 798
  • 2
  • 12
  • 32
1
vote
1 answer

Rome HttpClientFeedFetcher gives "Invalid XML" exception

I am trying to use Rome and just for testing, I am attempting to fetch a simple RSS feed and keep getting "Invalid XML" error. I implement the solution given in this solution yet it's not working for me. What am I doing wrong? Code: private void…
T. Francis
  • 169
  • 1
  • 12
1
vote
0 answers

create categories on RSS feed using java

I want to create an RSS feed using a JAVA application (using ROME), and got it to work OK, till i decided to use some categories. I use this code for the categories public boolean addRss(String cat,String msg,String msgLink,Date date){ …
Skaros Ilias
  • 1,008
  • 12
  • 40
1
vote
1 answer

ROME : Unable to get full description of post for a feed

I am parsing feed from http://feeds.feedburner.com/Commercial_LCD_Monitors. But while getting description of each post I got few lines and then it gets truncated with ending [...] characters. eg. Stand out from the crowds with a higher level of…
Amit Patel
  • 15,609
  • 18
  • 68
  • 106
1
vote
1 answer

How would ROME find out if a custom module is used on a feed?

I'm currently using ROME for RSS processing of Podcast feeds. At the moment those feeds could be composed in different ways. (One of the exceptions is in an Itunes feed schema). How does the custom feed reading work with Rome and the Modules…
monksy
  • 14,156
  • 17
  • 75
  • 124
1
vote
1 answer

Spring Feed Integration

i work with spring and spring-integration. I need get rss stream and write (right now is file). This is my application config for spring:
i.krivosheev
  • 387
  • 3
  • 18