Alex,
I'm getting this xml parsing error all day long. I'm using jdom.jar
and pass twitter api xml response directly to build jdom document.
Looking at the xml file right now, but hope you can take at look at it
as well. I expect other jdom users may see the same error.

2009-05-06 19:11:49,401 ERROR feed.XmlFetcher (XmlFetcher.java:run
(136)) - failed to fetch http://twitter.com/statuses/public_timeline.xml;
org.jdom.input.JDOMParseException: Error on line 8148: An invalid XML
character (Unicode: 0x19) was found in the element content of the
document.

thanks,
-aj


On Apr 2, 11:45 am, Alex Payne <[email protected]> wrote:
> Following up: if you can point us to a status (by ID) that has this
> unwanted control character, we'll track down the source of the issue.
>
>
>
> On Wed, Apr 1, 2009 at 23:48, AJ <[email protected]> wrote:
>
> > I'm using the public timeline feed (for data mining) and frequently
> > see xml paring error like this:
> > org.jdom.input.JDOMParseException: Error on line 3016: An invalid XML
> > character (Unicode: 0x1) was found in the element content of the
> > document.
>
> > the error comes from building JDom document in the following code.
> >        SAXBuilder builder = new SAXBuilder();
> >        URL u = new URL( url );
> >        URLConnection conn = u.openConnection();
> >        if(agent != null){
> >            conn.setRequestProperty("User-Agent", agent);
> >        }
> >        doc = builder.build( conn.getInputStream() );
>
> > is this a know issue with public timeline feed? any good way to fix
> > this error?
> > -aj
>
> --
> Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x

Reply via email to