Over a million developers have joined DZone.

Example Code for a Customized RSS-Feed

· Web Dev Zone

Make the transition to Node.js if you are a Java, PHP, Rails or .NET developer with these resources to help jumpstart your Node.js knowledge plus pick up some development tips.  Brought to you in partnership with IBM.

 A short code snippet for the customized RSS-Feed on this Google-Blogger site. I simply added the below code to a gadget to yield a tailored RSS-Feed in the sidebar. Most of the code was grabbed from the Google Code Playground.

.
 
 
<style type="text/css">
.gf-title {display:none;}
.gf-relativePublishedDate{font:9pt arial;}
.gf-snippet {font:10pt arial; padding-top:5px;}
.gfc-resultsHeader {display:none;}
</style>
 
<!--*******************************-->
 
<img src="http://www.alpinesicherheit.at/analyseberg/logo_landtirol_sw.jpg" alt="Land Tirol" align="top-left" border="4" height="40" width="40">
 
 
 
<script src="http://www.google.com/jsapi?key=AIzaSyA5m1Nc8ws2BbmPRwKu5gFradvD_hgq6G0" type="text/javascript"></script>
    <script type="text/javascript">
    /*
    *  How to use the Feed Control to grab, parse and display feeds.
    */
    
    google.load("feeds", "1");
    
    function OnLoad() {
      // Create a feed control
      var feedControl = new google.feeds.FeedControl();
    
      // Add feed.
      feedControl.addFeed("http://lwdweb.tirol.gv.at/produkte/llb/_today/LLBTirolRss.xml");
    
      // Draw it.
      feedControl.draw(document.getElementById("content"));
    }
    
    google.setOnLoadCallback(OnLoad);
    </script><script src="http://www.google.com/uds/?file=feeds&v=1" type="text/javascript"></script><link href="http://www.google.com/uds/api/feeds/1.0/77f89919ef841f93359ce886504e4e3f/default+en.css" type="text/css" rel="stylesheet"><script src="http://www.google.com/uds/api/feeds/1.0/77f89919ef841f93359ce886504e4e3f/default+en.I.js" type="text/javascript"></script>
  
  <span style="font-family: Arial; font-size: 1.2em; border: none;">
    <div id="content">Loading...</div></span>
<!--!doctype-->

Learn why developers are gravitating towards Node and its ability to retain and leverage the skills of JavaScript developers and the ability to deliver projects faster than other languages can.  Brought to you in partnership with IBM.

Topics:

Published at DZone with permission of Kay Cichini, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}