Just to avoid anyone else getting confused by Ray's continuous suggestions of things that are covered by the original post, let me restate.
The response I am getting when I submit that URL is a 400 com.sun.syndication.io.ParsingFeedException. The error is not thrown by my code, it is IN THE RESPONSE FROM GOOGLE. In fact, it is ALL I get back from Google. At this point, my code doesn't DO anything with the response besides display it, so there's nowhere for me to "barf" on the response. The error string was obtained by debugging my gadget in Visual Studio, and examining the contents of the response object I get returned. It seems _likely_ that an xml validation error is caused by malformed xml, but no, I am not "clear" about this, which is why I asked questions about multiple things that could be wrong with my code in my last post, only one of which was malformed xml. Ray - if you have got a working piece of code, how about posting it, as that is more likely to contain the answer than your guessing at things that couldn't possibly be the problem if you'd just read the thread properly! Rich On Sun, Aug 9, 2009 at 22:34, Ray Baxter<[email protected]> wrote: > You seem fairly clear that the problem is the validation of this xml. Have > you checked that? It seems unlikely because I can create a calendar with > your xml. Here it > is: http://www.google.com/calendar/feeds/suegisamt05kbu1gfohikpth8g%40group.calendar.google.com/public/basic > The code that you have shown us isn't doing any feed parsing of this xml, so > it is unlikely to be throwing a com.sun.syndication.io.ParsingFeedException > based on it. Finally, I wouldn't say it is totally impossible, but I am not > able to get Google to return a Java exception by passing it mal-formed url. > Are you certain that the error you are getting isn't in parsing the xml that > Google returns to you? What exact does the http traffic between your code > and Google look like? > Here's what I get back from Google after creating the calendar above: > <?xml version='1.0' encoding='utf-8'?> > <entry xmlns='http://www.w3.org/2005/Atom' > xmlns:gCal='http://schemas.google.com/gCal/2005' > xmlns:gd='http://schemas.google.com/g/2005' > gd:etag='W/"CEAFRH47eCp7I2A9WxJaGEg."'> > <id> > http://www.google.com/calendar/feeds/default/calendars/suegisamt05kbu1gfohikpth8g%40group.calendar.google.com</id> > <published>2009-08-09T21:18:35.970Z</published> > <updated>2009-08-09T21:18:35.000Z</updated> > <app:edited xmlns:app='http://www.w3.org/2007/app'> > 2009-08-09T21:18:35.000Z</app:edited> > <category scheme='http://schemas.google.com/g/2005#kind' > term='http://schemas.google.com/gCal/2005#calendarmeta' /> > <title>P-Budget</title> > <summary>This calendar was created for the Cal-Budget iGoogle > gadget.</summary> > <content type='application/atom+xml;type=feed' > src='http://www.google.com/calendar/feeds/suegisamt05kbu1gfohikpth8g%40group.calendar.google.com/private/full' > /> > <link rel='alternate' type='application/atom+xml' > href='http://www.google.com/calendar/feeds/suegisamt05kbu1gfohikpth8g%40group.calendar.google.com/private/full' > /> > <link rel='http://schemas.google.com/gCal/2005#eventFeed' > type='application/atom+xml' > href='http://www.google.com/calendar/feeds/suegisamt05kbu1gfohikpth8g%40group.calendar.google.com/private/full' > /> > <link rel='http://schemas.google.com/acl/2007#accessControlList' > type='application/atom+xml' > href='http://www.google.com/calendar/feeds/suegisamt05kbu1gfohikpth8g%40group.calendar.google.com/acl/full' > /> > <link rel='self' type='application/atom+xml' > href='http://www.google.com/calendar/feeds/default/owncalendars/full/suegisamt05kbu1gfohikpth8g%40group.calendar.googl > e.com' /> > <link rel='edit' type='application/atom+xml' > href='http://www.google.com/calendar/feeds/default/owncalendars/full/suegisamt05kbu1gfohikpth8g%40group.calendar.googl > e.com' /> > <author> > <name>P-Budget</name> > </author> > <gCal:timezone value='UTC' /> > <gCal:timesCleaned value='0' /> > <gCal:hidden value='false' /> > <gCal:color value='#2952A3' /> > <gCal:selected value='false' /> > <gCal:accesslevel value='owner' /> > <gd:where valueString='London, Eng, United Kingdom' /> > </entry> > On Fri, Aug 7, 2009 at 12:46 PM, Phyrefly <[email protected]> wrote: >> >> var newCal = ''; >> // newCal = newCal + '<?xml version="1.0" encoding="UTF-8"?>'; >> // newCal = newCal + '<feed xmlns="http://www.w3.org/2005/Atom"'; >> // newCal = newCal + >> 'xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/"'; >> // newCal = newCal + 'xmlns:gCal="http://schemas.google.com/gCal/2005"'; >> // newCal = newCal + 'xmlns:gd="http://schemas.google.com/g/2005">'; >> // newCal = newCal + '<updated>2009-08-06T12:25:03.873Z</updated>'; >> // newCal = newCal + '<category >> scheme="http://schemas.google.com/g/2005#kind"'; >> // newCal = newCal + >> 'term="http://schemas.google.com/gCal/2005#calendarmeta"/>'; >> newCal = newCal + '<entry xmlns=\'http://www.w3.org/2005/Atom\''; >> newCal = newCal + ' xmlns:gd=\'http://schemas.google.com/g/2005\''; >> newCal = newCal + ' xmlns:gCal=\'http://schemas.google.com/gCal/2005\'>'; >> newCal = newCal + ' <title type=\'text\'>P-Budget</title>'; >> newCal = newCal + ' <summary type=\'text\'>This calendar was created >> for the Cal-Budget iGoogle gadget.</summary>'; >> // newCal = newCal + ' <gCal:timezone >> value=\'Europe/London\'></gCal:timezone>'; >> newCal = newCal + ' <gCal:hidden value=\'false\'></gCal:hidden>'; >> newCal = newCal + ' <gCal:color value=\'#2952A3\'></gCal:color>'; >> //newCal = newCal + ' <gCal:settingsProperty name=\'dateFieldOrder\' >> value=\'YMD\'/>'; >> //newCal = newCal + ' <gCal:settingsProperty name=\'format24HourTime\' >> value=\'true\'/>'; >> //newCal = newCal + ' <gCal:dateFieldOrder >> value=\'YMD\'></gCal:dateFieldOrder>'; >> //newCal = newCal + ' <gCal:format24HourTime >> value=\'true\'></gCal:format24HourTime>'; >> newCal = newCal + ' <gd:where rel=\'\' label=\'\' >> valueString=\'London, Eng, United Kingdom\'></gd:where>'; >> newCal = newCal + '</entry>'; >> // newCal = newCal + '</feed>'; > > Could your tool chain be barfing on something in that xml? > Ray > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
