12 messages in com.googlegroups.bloggerdevUnstable Blogger Data API?
FromSent OnAttachments
Manish Pandit06 Sep 2006 22:44 
Pete Hopkins ☠07 Sep 2006 11:11 
Manish Pandit07 Sep 2006 20:07 
sat11 Sep 2006 06:34 
bors...@gmail.com11 Sep 2006 16:52 
Manish Pandit11 Sep 2006 22:16 
Pete Hopkins ☠12 Sep 2006 09:57 
bors...@gmail.com14 Sep 2006 11:11 
bors...@gmail.com14 Sep 2006 15:02 
Eric Case18 Sep 2006 14:24 
bors...@gmail.com22 Sep 2006 09:27 
bors...@gmail.com29 Sep 2006 20:26 
Subject:Unstable Blogger Data API?
From:Manish Pandit (pand@gmail.com)
Date:09/06/2006 10:44:57 PM
List:com.googlegroups.bloggerdev

Hi there!

I have been trying to programatically get a list of blogs for a user, and then extract his blogID followed by a post to the selected blogs.

The meta-feed URL in the documentation didnt work, so I tried https://www.blogger.com/atom which worked from my browser. However, when I used this in my java code, I intermittently got a Null Pointer Exception and a SAXParseException. Often times I ended up getting a 500.py error on the metafeed URL from my browser. Anyway, here is the code snippet:

URL feedUrl = new URL("https://www.blogger.com/atom"); GoogleService myService = new GoogleService("blogger","My Test Application"); myService.setUserCredentials("someuser", "somepass"); Feed resultFeed = myService.getFeed(feedUrl,Feed.class);

And here is the SAXParseException. I am using JDK 1.5_08.

Fatal Error] :9:5: The element type "link" must be terminated by the matching end-tag "</link>". Sep 6, 2006 6:58:23 PM com.google.gdata.util.LogUtils logException WARNING: org.xml.sax.SAXParseException: The element type "link" must be terminated by the matching end-tag "</link>". Message: The element type "link" must be terminated by the matching end-tag "</link>".

at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.ParserAdapter.parse(Unknown Source) at com.google.gdata.util.XmlParser.parse(Unknown Source) at com.google.gdata.util.XmlParser.parse(Unknown Source) at com.google.gdata.data.BaseFeed.parseAtom(Unknown Source) at com.google.gdata.client.Service.getFeed(Unknown Source) at com.google.gdata.client.GoogleService.getFeed(Unknown Source) at com.google.gdata.client.Service.getFeed(Unknown Source) at com.test.blogger.BloggerInterface.getBlogsForUser(BloggerInterface.java:19) at com.test.blogger.BloggerInterface.main(BloggerInterface.java:26) com.google.gdata.util.ParseException: org.xml.sax.SAXParseException: The element type "link" must be terminated by the matching end-tag "</link>". at com.google.gdata.util.XmlParser.parse(Unknown Source) at com.google.gdata.util.XmlParser.parse(Unknown Source) at com.google.gdata.data.BaseFeed.parseAtom(Unknown Source) at com.google.gdata.client.Service.getFeed(Unknown Source) at com.google.gdata.client.GoogleService.getFeed(Unknown Source) at com.google.gdata.client.Service.getFeed(Unknown Source) at com.test.blogger.BloggerInterface.getBlogsForUser(BloggerInterface.java:19) at com.test.blogger.BloggerInterface.main(BloggerInterface.java:26) Caused by: org.xml.sax.SAXParseException: The element type "link" must be terminated by the matching end-tag "</link>". at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at org.xml.sax.helpers.ParserAdapter.parse(Unknown Source) ... 8 more

Apparently this is something from the JDK's XML parser..

Any help is appreciated!

-cheers, Manish