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
0
votes
3 answers

ROME custom user agent/reading Reddit RSS

So I'm trying to make a Discord bot that uses a Reddit RSS feed to post some info about new posts. I'm making this in Java and am currently working on pulling the RSS feed. Trouble is, Reddit rejects whatever user agent ROME uses by default, I…
Troels Jessen
  • 125
  • 1
  • 10
0
votes
1 answer

How to make rss feed into the java webapp on GAE?

I have prepared the servlet according to https://rometools.github.io/rome/ROMEReleases/ROME0.4Beta/RomeV0.4Tutorials/RomeV0.4TutorialUsingRomeWithinAServletToCreateAndReturnAFeed.html example. However, the rss is not validated on…
Eljah
  • 4,188
  • 4
  • 41
  • 85
0
votes
1 answer

RSS Rome not working due to JDOM dependency

I am trying to get ROM RSS to work and the JDOM dependency is not working with it. Apparently this is because the JDOM libraries use the package org.jdom2.Document type classes not the org.jdom.Document classes that Rome is expecting. Apparently…
Tyler Durden
  • 11,156
  • 9
  • 64
  • 126
0
votes
1 answer

RSS Feed - While parsing closing tag exception occurs

I am using rome-1.5.jar for parsing RSS Feed. But when it parse some rss feed it gives an error of closing meta tag. RSS Feed link : NewYork Times RSS Feed Link here is the code public static SyndFeed getRssFeed(String rsslUrl){ try { …
Kushal Jain
  • 3,029
  • 5
  • 31
  • 48
0
votes
1 answer

Cannot access Document. Class file not found

I'm using Android Studio and i wanted to use rome tools to read rss feed content, I downloaded Jdom and rome from their website, put the jdom folder in the app/libs folder of my project and chose "import library" for each jar from inside android…
Marco Cutecchia
  • 1,335
  • 2
  • 10
  • 14
0
votes
1 answer

How to read previous rss feed (next feed)) in java?

Right now I can read the current RSS feed (10 items) using rome library in java. I want to read the previous articles from the RSS feed. Thank you for any suggestions. Here is my sample code for reading the RSS feed. try { URL url = new…
Harinath
  • 105
  • 1
  • 4
  • 12
0
votes
1 answer

Java RSS Feeds and Rome

I am trying to use Rome RSS Reader with Eclipse. I have used BuildPath and added modules-0.3.2.jar modules-0.3.2-javadoc.jar modules-0.3.2-sources.jar rome-1.0.jar rome-modules-1.0.jar import java.net.URL; import java.io.InputStreamReader; import…
Mesogi
  • 629
  • 1
  • 5
  • 11
0
votes
1 answer

How to extract video url from Rss?

I'm reading a RSS feed that contains video url. I'm using ROME and does not succeed to extract it. Below is the RSS feed xml and I'm trying to extract I would appreciate any help. The Rss Feed:
0
votes
2 answers

CDATA section in RSS not working - rometools

I am using rometools for rss feeds. I am trying to use html tags inside cdata in content section of the RSS item. Here is my code: public class RssView extends AbstractRssFeedView { @Override protected List
Rizwan Ejaz
  • 286
  • 2
  • 9
0
votes
1 answer

Reading custom rss feed details using ROME library

By using ROM library, I am able to get the RSS feeds like title,description,publishedDate...etc. But I want to read following RSS feeds: http://www.przoom.com/photos/152165_1.jpg Leading Press Release Newswire and…</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/feed" class="post-tag grid--cell" title="show questions tagged 'feed'" rel="tag">feed</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 26 '16 at 14:31">asked Feb 26 '16 at 14:31</time> <a href="../../users/937892/psr" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/937892.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="PSR" /> </a> <div class="s-user-card--info"> <a href="../../users/937892/psr" class="s-user-card--link">PSR</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">39,804</li> <li class="s-award-bling s-award-bling__gold" title="41 gold badges">41</li> <li class="s-award-bling s-award-bling__silver" title="111 silver badges">111</li> <li class="s-award-bling s-award-bling__bronze" title="151 bronze badges">151</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-34918967"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/34918967/how-to-limit-number-of-downloaded-parsed-entries-items-in-rome-fetcher" class="question-hyperlink">How to limit number of downloaded (parsed) entries (items) in ROME Fetcher</a></h3> <div class="excerpt">I am using ROME & ROME Fetcher for getting Feeds (ATOM/RSS) in my JavaEE web application. In some cases I would like to limit number of downloaded/parsed entries/items. I want to avoid this scenario: get all and ten just make subList(). Any ideas…</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/feed" class="post-tag grid--cell" title="show questions tagged 'feed'" rel="tag">feed</a> <a href="../../questions/tagged/atom-feed" class="post-tag grid--cell" title="show questions tagged 'atom-feed'" rel="tag">atom-feed</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 Jan 21 '16 at 08:42">asked Jan 21 '16 at 08:42</time> <a href="../../users/1599213/to-kra" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1599213.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="To Kra" /> </a> <div class="s-user-card--info"> <a href="../../users/1599213/to-kra" class="s-user-card--link">To Kra</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">3,344</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="38 silver badges">38</li> <li class="s-award-bling s-award-bling__bronze" title="45 bronze badges">45</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-3239329"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/3239329/parsing-large-rss-feeds-using-rome-running-out-of-memory" class="question-hyperlink">Parsing large RSS feeds using Rome, running out of memory</a></h3> <div class="excerpt">More specifically large XML webpages (RSS Feeds). I am using the excellent Rome library to parse them, but the page I am currently trying to get is really large and Java runs out of memory before getting the whole document. How can I split up the…</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 Jul 13 '10 at 16:38">asked Jul 13 '10 at 16:38</time> <a href="../../users/390700/chin-in-eye" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/390700.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Chin in Eye" /> </a> <div class="s-user-card--info"> <a href="../../users/390700/chin-in-eye" class="s-user-card--link">Chin in Eye</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-30132627"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/30132627/changing-classes-canonical-names-in-package" class="question-hyperlink">Changing classes' canonical names in package</a></h3> <div class="excerpt">A bit of background (not directly relevant as my question is quite general): I want to use Android ROME Feed Reader library to parse RSS feed that has media content. But ROME doesn't support media out of the box, so I want to make use of a media…</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/android" class="post-tag grid--cell" title="show questions tagged 'android'" rel="tag">android</a> <a href="../../questions/tagged/package" class="post-tag grid--cell" title="show questions tagged 'package'" rel="tag">package</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 May 08 '15 at 20:48">asked May 08 '15 at 20:48</time> <a href="../../users/1815052/squeezymo" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1815052.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="SqueezyMo" /> </a> <div class="s-user-card--info"> <a href="../../users/1815052/squeezymo" class="s-user-card--link">SqueezyMo</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,606</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="21 silver badges">21</li> <li class="s-award-bling s-award-bling__bronze" title="34 bronze badges">34</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-2974156"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/2974156/setting-encoding-in-grails-controller-s-render-method" class="question-hyperlink">Setting encoding in Grails controller's render method</a></h3> <div class="excerpt">I'm trying to build an RSS feed using Grails and Rome. In my controller's rss action, my last command is : render(text: getFeed("rss_2.0"), contentType:"application/rss+xml", encoding:"ISO-8859-1 ") However, when I navigate to my feed's URL, the…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/grails" class="post-tag grid--cell" title="show questions tagged 'grails'" rel="tag">grails</a> <a href="../../questions/tagged/encoding" class="post-tag grid--cell" title="show questions tagged 'encoding'" rel="tag">encoding</a> <a href="../../questions/tagged/rss" class="post-tag grid--cell" title="show questions tagged 'rss'" rel="tag">rss</a> <a href="../../questions/tagged/character-encoding" class="post-tag grid--cell" title="show questions tagged 'character-encoding'" rel="tag">character-encoding</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 Jun 04 '10 at 12:39">asked Jun 04 '10 at 12:39</time> <a href="../../users/250648/philippe" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/250648.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Philippe" /> </a> <div class="s-user-card--info"> <a href="../../users/250648/philippe" class="s-user-card--link">Philippe</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">6,703</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="30 silver badges">30</li> <li class="s-award-bling s-award-bling__bronze" title="50 bronze badges">50</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-28107972"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>0</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/28107972/generating-threaded-rss-atom-feeds" class="question-hyperlink">Generating Threaded RSS / ATOM Feeds</a></h3> <div class="excerpt">I want to generate a RSS feed that can be displayed threaded in RSS-Clients. So if the feed describes something like comments or changes to one and the same entity, i want these to be visually grouped. Is this possible in Java? </div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <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> <a href="../../questions/tagged/threaded-comments" class="post-tag grid--cell" title="show questions tagged 'threaded-comments'" rel="tag">threaded-comments</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jan 23 '15 at 10:37">asked Jan 23 '15 at 10:37</time> <a href="../../users/314089/icyerasor" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/314089.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="icyerasor" /> </a> <div class="s-user-card--info"> <a href="../../users/314089/icyerasor" class="s-user-card--link">icyerasor</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">4,973</li> <li class="s-award-bling s-award-bling__gold" title="1 gold badge">1</li> <li class="s-award-bling s-award-bling__silver" title="43 silver badge">43</li> <li class="s-award-bling s-award-bling__bronze" title="52 bronze badge">52</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/rome_page=7" rel="prev" title="Go to page 7">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/rome_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/rome_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/rome_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/rome_page=9" rel="" title="Go to page 9">9</a> <a class="s-pagination--item" href="../../questions/tagged/rome_page=10" rel="" title="Go to page 10">10</a> <a class="s-pagination--item" href="../../questions/tagged/rome_page=9" rel="next" title="Go to page 9"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>