4 messages in com.googlegroups.google-calendar-help-dataapiRe: Newbie help please!! XML-related
FromSent OnAttachments
jcgnu18 Apr 2008 22:42 
jcgnu19 Apr 2008 14:04 
Austin (Google)20 Apr 2008 20:31 
Sparky23 Apr 2008 04:32 
Subject:Re: Newbie help please!! XML-related
From:Sparky (cala@googlemail.com)
Date:04/23/2008 04:32:39 AM
List:com.googlegroups.google-calendar-help-dataapi

How did you generate the xml from the calender after connecting, Im trying to do the same thing :)

On Apr 21, 4:31 am, "Austin (Google)" <api.@google.com> wrote:

No prob :)

Austin

On Sat, Apr 19, 2008 at 2:04 PM, jcgnu <jcga@gmail.com> wrote:

Never mind...

On Apr 19, 12:43 am, jcgnu <jcga@gmail.com> wrote:

Hi all.

I'm developing a Java application using Google Calendar Data API.

Basically, I want to log in to an account, get the information on its calendar (the only one it has) andgenerateanXML. I would like to be able to parse thatXMLtogeneratea customXML(with a format defined by me)...

So, I've spent quite a lot of time on it and I can't seem to be able to get anywhere... I currently have a code that logs into the account and gets the names of all the calendars on that account (basically it is the code I found on the guide.

I hope someone can help me out here, please! How can I get thisXML and parse it togeneratemy own??

Thanks a lot, in advance!!!

Here's how my code currently looks like:

CalendarService myService = new CalendarService("exampleCo- exampleApp-1.0"); myService.setUserCredentials("user@gmail.com",

"password");

URL feedUrl = new URL("http://www.google.com/calendar/feeds/ default/allcalendars/full"); CalendarFeed resultFeed = myService.getFeed(feedUrl, CalendarFeed.class);

System.out.println("Your calendars:");

for (int i = 0; i < resultFeed.getEntries().size(); i++) { CalendarEntry entry = resultFeed.getEntries().get(i); System.out.println("\t" + entry.getTitle().getPlainText()); }