<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating a w3c validated rss feed using Rome and spring 3</title>
	<atom:link href="http://www.gridshore.nl/2010/02/16/creating-a-w3c-validated-rss-feed-using-rome-and-spring-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gridshore.nl/2010/02/16/creating-a-w3c-validated-rss-feed-using-rome-and-spring-3/</link>
	<description>A weblog about software engineering, Architecture, Technology an other things we like.</description>
	<lastBuildDate>Sat, 28 Jan 2012 20:11:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jettro</title>
		<link>http://www.gridshore.nl/2010/02/16/creating-a-w3c-validated-rss-feed-using-rome-and-spring-3/comment-page-1/#comment-31257</link>
		<dc:creator>jettro</dc:creator>
		<pubDate>Mon, 01 Aug 2011 09:31:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/?p=999#comment-31257</guid>
		<description>Yes you are right, you need to do this.</description>
		<content:encoded><![CDATA[<p>Yes you are right, you need to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dani</title>
		<link>http://www.gridshore.nl/2010/02/16/creating-a-w3c-validated-rss-feed-using-rome-and-spring-3/comment-page-1/#comment-31256</link>
		<dc:creator>Dani</dc:creator>
		<pubDate>Sat, 30 Jul 2011 22:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/?p=999#comment-31256</guid>
		<description>Thanks for this great post. I followed your description and now my tool produces valid RSS feeds. Have a look at http://www.feederator.org. It cost me some time to figure out that I had to add the new module myself:
List modules = feed.getModules();
AtomNSModuleImpl module = new AtomNSModuleImpl();
module.setLink(req.getRequestURL().toString());
modules.add(module);
feed.setModules(modules);

Was that the intention or did I do something wrong and this step wouldn&#039;t have been necessary?

Dani</description>
		<content:encoded><![CDATA[<p>Thanks for this great post. I followed your description and now my tool produces valid RSS feeds. Have a look at <a href="http://www.feederator.org" rel="nofollow">http://www.feederator.org</a>. It cost me some time to figure out that I had to add the new module myself:<br />
List modules = feed.getModules();<br />
AtomNSModuleImpl module = new AtomNSModuleImpl();<br />
module.setLink(req.getRequestURL().toString());<br />
modules.add(module);<br />
feed.setModules(modules);</p>
<p>Was that the intention or did I do something wrong and this step wouldn&#8217;t have been necessary?</p>
<p>Dani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.gridshore.nl/2010/02/16/creating-a-w3c-validated-rss-feed-using-rome-and-spring-3/comment-page-1/#comment-31166</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Mon, 14 Feb 2011 14:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/?p=999#comment-31166</guid>
		<description>Thanks jettro for the code. I found it usefull as an entry point to the API but imho it has some errors. 

If you like, have a look at my solution: http://info.michael-simons.eu/2011/02/14/all-roads-lead-to-rome/

Have a nice day,
Michael.</description>
		<content:encoded><![CDATA[<p>Thanks jettro for the code. I found it usefull as an entry point to the API but imho it has some errors. </p>
<p>If you like, have a look at my solution: <a href="http://info.michael-simons.eu/2011/02/14/all-roads-lead-to-rome/" rel="nofollow">http://info.michael-simons.eu/2011/02/14/all-roads-lead-to-rome/</a></p>
<p>Have a nice day,<br />
Michael.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Jones</title>
		<link>http://www.gridshore.nl/2010/02/16/creating-a-w3c-validated-rss-feed-using-rome-and-spring-3/comment-page-1/#comment-30439</link>
		<dc:creator>Steve Jones</dc:creator>
		<pubDate>Wed, 18 Aug 2010 21:57:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/?p=999#comment-30439</guid>
		<description>I am using Rome 1.0 to generate an Atom 1.0 feed. I found I did not need to extend Rome to get a valid feed, here is the appropriate Rome API usage:
 
&lt;blockquote&gt;
SyndFeed techFeed = new SyndFeedImpl();

feed.setUri(myFeedURI);
feed.setLink(myFeedLink);

SyndLink linkRelSelf = new SyndLinkImpl();
linkRelSelf.setHref(feedURL);
linkRelSelf.setRel(&quot;self&quot;);
linkRelSelf.setType(&quot;application/rss+xml&quot;);
feed.getLinks().add(linkRelSelf);

feed.setTitle(&quot;your title&quot;);
feed.setDescription(&quot;your description&quot;);		
// use greatest entry date
feed.setPublishedDate(new Date());

... add entries ...
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>I am using Rome 1.0 to generate an Atom 1.0 feed. I found I did not need to extend Rome to get a valid feed, here is the appropriate Rome API usage:</p>
<blockquote><p>
SyndFeed techFeed = new SyndFeedImpl();</p>
<p>feed.setUri(myFeedURI);<br />
feed.setLink(myFeedLink);</p>
<p>SyndLink linkRelSelf = new SyndLinkImpl();<br />
linkRelSelf.setHref(feedURL);<br />
linkRelSelf.setRel(&#8220;self&#8221;);<br />
linkRelSelf.setType(&#8220;application/rss+xml&#8221;);<br />
feed.getLinks().add(linkRelSelf);</p>
<p>feed.setTitle(&#8220;your title&#8221;);<br />
feed.setDescription(&#8220;your description&#8221;);<br />
// use greatest entry date<br />
feed.setPublishedDate(new Date());</p>
<p>&#8230; add entries &#8230;
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.gridshore.nl/2010/02/16/creating-a-w3c-validated-rss-feed-using-rome-and-spring-3/comment-page-1/#comment-30407</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Mon, 12 Jul 2010 14:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/?p=999#comment-30407</guid>
		<description>Hi Andreea, sorry for the delay, just back from vacation.  I put it in /src/java directory.  I&#039;m using NetBeans which seems to find it in that location.  I also have a log4j properties file there.  I should have noticed that and put the Rome file there in the first place!  :-)</description>
		<content:encoded><![CDATA[<p>Hi Andreea, sorry for the delay, just back from vacation.  I put it in /src/java directory.  I&#8217;m using NetBeans which seems to find it in that location.  I also have a log4j properties file there.  I should have noticed that and put the Rome file there in the first place!  <img src='http://www.gridshore.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreea</title>
		<link>http://www.gridshore.nl/2010/02/16/creating-a-w3c-validated-rss-feed-using-rome-and-spring-3/comment-page-1/#comment-30403</link>
		<dc:creator>Andreea</dc:creator>
		<pubDate>Fri, 02 Jul 2010 13:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/?p=999#comment-30403</guid>
		<description>Hi. I am trying to create custom modules in order to add some elements to the ROME generated feeds and feed item, and I am having the problem of ROME not finding the rome.properties file, although I have tried to place it in several paths. Any information that helped you get over this step that you can share, Bill?</description>
		<content:encoded><![CDATA[<p>Hi. I am trying to create custom modules in order to add some elements to the ROME generated feeds and feed item, and I am having the problem of ROME not finding the rome.properties file, although I have tried to place it in several paths. Any information that helped you get over this step that you can share, Bill?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.gridshore.nl/2010/02/16/creating-a-w3c-validated-rss-feed-using-rome-and-spring-3/comment-page-1/#comment-30382</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 11 Jun 2010 21:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/?p=999#comment-30382</guid>
		<description>Prop file is finally getting read.  Breaking in generate() now and see additional namespaces being added to root.additionalNamespaces[] via addNamespaceDeclaration().  There are 6 in that array before I add mine.  None of the additional namespaces appear in the XML output.  Getting closer!</description>
		<content:encoded><![CDATA[<p>Prop file is finally getting read.  Breaking in generate() now and see additional namespaces being added to root.additionalNamespaces[] via addNamespaceDeclaration().  There are 6 in that array before I add mine.  None of the additional namespaces appear in the XML output.  Getting closer!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.gridshore.nl/2010/02/16/creating-a-w3c-validated-rss-feed-using-rome-and-spring-3/comment-page-1/#comment-30381</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 11 Jun 2010 19:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/?p=999#comment-30381</guid>
		<description>Thanks much!  Enjoy the weekend.</description>
		<content:encoded><![CDATA[<p>Thanks much!  Enjoy the weekend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jettro</title>
		<link>http://www.gridshore.nl/2010/02/16/creating-a-w3c-validated-rss-feed-using-rome-and-spring-3/comment-page-1/#comment-30380</link>
		<dc:creator>jettro</dc:creator>
		<pubDate>Fri, 11 Jun 2010 19:06:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/?p=999#comment-30380</guid>
		<description>I do not have the source code with me. Will respond after the week-end.</description>
		<content:encoded><![CDATA[<p>I do not have the source code with me. Will respond after the week-end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://www.gridshore.nl/2010/02/16/creating-a-w3c-validated-rss-feed-using-rome-and-spring-3/comment-page-1/#comment-30379</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 11 Jun 2010 17:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/?p=999#comment-30379</guid>
		<description>Hi Jettro, thanks for the post!  I&#039;m trying to do almost exactly the same thing - add additional namespace(s) to the feed.  I&#039;ve copied your code from above and modified the URI link for a different namespace.  But I must be missing some important step as when I run the code, I don&#039;t get anything new in the output. 

My rome.properties file looks like:
atom_1.0.feed.ModuleGenerator.classes=com.foo.Rome.aggregator.AtomNSModuleGenerator  

and is located in:
/source/trunk/com.foo.Rome.aggregator/rome.properties (I also tried putting a copy in the folder with my jar files)

I&#039;ve added the following to my main java file as I&#039;d see other samples which did so:

feed.getModules().add(new AtomNSModuleImpl());   

This does break at the AtomNSModuleImpl constructor, but I get no other breakpoints hit in any methods in the Impl or Generator classes.

Not surprisingly, when I generate the output, I don&#039;t see the updated namespace.

Is there an additional call needed in the main java file? Is something wrong with the rome.properties contents/location such that it isn&#039;t finding/calling the Generator class?  Getting the Generator called seems to be the missing link.

I&#039;m a java/unix newbie after doing Win32 for years so I am probably doing something horribly stupid, but I haven&#039;t spotted it yet despite reading all the samples I can find. :-)  But I&#039;ll keep banging my head against the wall cause I&#039;m too ignorant to stop!

Any thoughts?

Cheers!
Bill</description>
		<content:encoded><![CDATA[<p>Hi Jettro, thanks for the post!  I&#8217;m trying to do almost exactly the same thing &#8211; add additional namespace(s) to the feed.  I&#8217;ve copied your code from above and modified the URI link for a different namespace.  But I must be missing some important step as when I run the code, I don&#8217;t get anything new in the output. </p>
<p>My rome.properties file looks like:<br />
atom_1.0.feed.ModuleGenerator.classes=com.foo.Rome.aggregator.AtomNSModuleGenerator  </p>
<p>and is located in:<br />
/source/trunk/com.foo.Rome.aggregator/rome.properties (I also tried putting a copy in the folder with my jar files)</p>
<p>I&#8217;ve added the following to my main java file as I&#8217;d see other samples which did so:</p>
<p>feed.getModules().add(new AtomNSModuleImpl());   </p>
<p>This does break at the AtomNSModuleImpl constructor, but I get no other breakpoints hit in any methods in the Impl or Generator classes.</p>
<p>Not surprisingly, when I generate the output, I don&#8217;t see the updated namespace.</p>
<p>Is there an additional call needed in the main java file? Is something wrong with the rome.properties contents/location such that it isn&#8217;t finding/calling the Generator class?  Getting the Generator called seems to be the missing link.</p>
<p>I&#8217;m a java/unix newbie after doing Win32 for years so I am probably doing something horribly stupid, but I haven&#8217;t spotted it yet despite reading all the samples I can find. <img src='http://www.gridshore.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   But I&#8217;ll keep banging my head against the wall cause I&#8217;m too ignorant to stop!</p>
<p>Any thoughts?</p>
<p>Cheers!<br />
Bill</p>
]]></content:encoded>
	</item>
</channel>
</rss>

