使用ROME库读取自定义RSS订阅源详细信息

时间:2016-02-26 14:31:43

标签: java rss feed rome

通过使用ROM库,我可以获得RSS feed,如title,description,publishedDate ...等。但我想阅读以下RSS源:

<item>
<photo>http://www.przoom.com/photos/152165_1.jpg</photo>
<title>
Leading Press Release Newswire and Market Research Report Distribution Service Network Celebrates 10 Year Anniversary
</title>
<description>
PRZOOM - Newswire (press release) - 2015/04/20, San Francisco, CA United States - The business news distribution network (PRZOOM.com, NewswireToday.com, and more recently PRTODAY.com) has become the top most used service on a daily basis within the U.S., United Kingdom, France, and Germany
</description>
<link>http://www.przoom.com/news/152165/</link>
<category>Advertising/PPC/Classifieds</category>
</item>

我无法在此处阅读照片标记。

请建议我。谢谢你提前......

1 个答案:

答案 0 :(得分:0)

The feed isn't valid

line 13, column 2: Undefined item element: photo (15 occurrences) [help]
  <photo>http://www.przoom.com/photos/152165_1.jpg</photo>

罗马不会提供<photo>标签,因为它不属于它所在的命名空间。

与此类似的问题:get image url of rss with rome library

编辑:by implementing a custom Wirefeed parser, it is possible to save these custom tags