Google Groups

Re: [bloggerDev] How to put georss informations on a blogger post (Java)

Brett Morgan May 9, 2012 6:19 PM
Posted in group: Blogger Developer Group
Thanks Yoan!

On Mon, May 7, 2012 at 9:42 PM, Yoan <> wrote:
I found the solution if it can help somebody :

public static Entry createPost(
  GoogleService myService, String blogID, String title,
    String content, String userName)
    throws ServiceException, IOException {
// Create the entry to insert
Entry myEntry = new Entry();
myEntry.setTitle(new PlainTextConstruct(title));
myEntry.setContent(new PlainTextConstruct(content));

XmlBlob xml = new XmlBlob();
xml.addNamespace(new XmlNamespace("georss", ""));
xml.addNamespace(new XmlNamespace("thr", ""));
xml.setBlob("<thr:total>0</thr:total><georss:featurename>La Rochelle , Charente-Maritime, Poitou-Charentes, France</georss:featurename><georss:point>46.160337, -1.151138</georss:point>");

// Ask the service to insert the new entry
URL postUrl = new URL("" + blogID + "/posts/default");
return myService.insert(postUrl, myEntry); 


You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To view this discussion on the web visit

To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at


Brett Morgan

Developer Relations Engineer, Blogger