Reading RSS for google news

Hello Everybody

I am trying to get RSS feeder from google news. [br]

But i am getting err that m not authorized to do so (server err 404)

Please help me . I have done enough search on net from last 2 weeks.[ /u]

Here is my code [br]

<%@page contentType="text/html"%>

<%@ page import="java.net.*" %>

<%@ page import="java.io.*" %>

<%@ taglib uri="/WEB-INF/tlds/rssutils.tld" prefix="rss" %>

<%

String urlString = "http://news.google.com/news?hl=en&ned=us&q=world+cricket&ie=UTF-8&output=rss";

%>

<rss:feed url= "<%=urlString%>" feedId="example4"/>

<b>Image: </b><rss:channelImage feedId="example4"/>

<b>Title: </b><rss:channelTitle feedId="example4"/>

<b>Link: </b><rss:channelLink feedId="example4" asLink="true"/>

<b>Description: </b><rss:channelDescription feedId="example4"/>

A lot of thanx in advance.

[1109 byte] By [chahalkhushwindera] at [2007-11-26 19:54:26]
# 1

I have one alternative solution, Check out if it works out for you :

In following Example,

XML file is loaded from URL.

XSL file is written by developer [by analysing RSS XML; almost 90% of RSS Xmls have standard structure so you can write XSL]

Then just transform XML with XSL.

Finally write simple HTML with following code in it.

<script type="text/javascript">

// Load XML

var xml = new ActiveXObject("Microsoft.XMLDOM")

xml.async = false

xml.load("http://www.google.com/rss/............./ GoogleRssFeed.xml")

// Load XSL

var xsl = new ActiveXObject("Microsoft.XMLDOM")

xsl.async = false

xsl.load("MyGoogleRSS.xsl") // Transform XML with your xsl

document.write(xml.transformNode(xsl))

</script>

krunalsa at 2007-7-9 22:46:53 > top of Java-index,Other Topics,Fresh Tools...