commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adriano Bonat" <>
Subject Re: Exception when parsing RSS
Date Tue, 09 Sep 2008 21:18:40 GMT
On Tue, Sep 9, 2008 at 5:39 PM, Simon Kitching <> wrote:
> Can you post the relevant part of the rss input text?

For example:

> >From this error message, it sure looks like the input is invalid xml.
> And if that is the case, then there is no way to parse it with any xml
> parser.

The <description> content from the Google's RSS is escaped, so "<" is
&lt;, ">" is &gt;... so I don't understand why I'm getting that error.

> If it is intermittent, then maybe you are getting intermittent
> truncation of the input data stream.

Hmm.. it is implemented like this:

InputStreamReader isr = new
InputStreamReader(urlConnection.getInputStream(), "UTF-8");
BufferedReader br = new BufferedReader(isr);
Channel channel = (Channel) this.rssParser.parse(br);

... so using a BufferedReader is this "intermittent" problem possible?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message