No, it appears you were right, dropping the timezone tag didn't help,
now I've gotten rid of the error (I introduced syntax error in taking
out the timezone tag), I'm getting the XML parse error again.  So no
change, basically.

No, don't worry, the nastiness was all mine. I just didn't (and still
don't) appreciate "advice" that is clearly negated by the detail given
in the question, and has no basis in reality.  All answers like that
tend to do is stop other people who may understand the problem or have
an actual answer for it from responding (or even reading the post, as
it appears to be answered already).

So, if you, or anyone else out there who HAS read this thread has any
advice on why that posted code (with and without the <xml> and <feed>
tags) always results in an XML parse error, I'd appreciate any
comments.  Is there something wrong with the parameters collection
that I'm passing in to makeRequest?  Or anything specific wrong with
the xml for the entry tag?  Anything else that I haven't thought to
check?

To clarify, the code building my XML data is currently as follows:
(commented code left in to show what else has been tried)

 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>';

Rich
Sent from London, Eng, United Kingdom


On Fri, Aug 7, 2009 at 19:19, Ray Baxter<[email protected]> wrote:
> Dropping the timezone tag is unnecessary. I just omitted it since I didn't
> immediately have the correct time zone string for London and couldn't be
> bothered to look it up.
> If there was any nastiness on my side, before your "Now can anyone give me
> an actual answer to my query?  Preferably someone who's given more than a
> cursory glance at the original mail? Or even someone who understands the
> API?" I was unaware of it, and I apologize for it.
> Ray
>
> On Fri, Aug 7, 2009 at 10:29 AM, Phyrefly <[email protected]> wrote:
>>
>> Looking at that xml compared to the xml in the example, your answer
>> was actually "drop the timezone tag" - I've tried that now, and at
>> least I get a different error, probably due to coding problems further
>> on in my logic...
>>
>> see how much nastiness could have been avoided if you had said that in
>> the first place?
>>
>> Rich
>> Sent from London, Eng, United Kingdom
>>
>>
>> On Fri, Aug 7, 2009 at 17:32, Ray Baxter<[email protected]> wrote:
>> > Actually, your "query" was "Can anyone help me with this?"
>> > I already gave you the answer, but I'll try one more time:
>> > Post this data:
>> >    data = "<entry xmlns='http://www.w3.org/2005/Atom'
>> >        xmlns:gd='http://schemas.google.com/g/2005'
>> >        xmlns:gCal='http://schemas.google.com/gCal/2005'>
>> >   <title type='text'>Phyrefly's Calendar</title>
>> >   <summary type='text'>Because he can't figure it out himself and needs
>> > to
>> > be rude.</summary>
>> >   <gCal:hidden value='false'></gCal:hidden>
>> >   <gCal:color value='#2952A3'></gCal:color>
>> >   <gd:where rel='' label='' valueString='London, Eng, United
>> > Kingdom'></gd:where>
>> > </entry>"
>> > To this url:
>> >
>> >
>> > post_data('https://www.google.com/calendar/feeds/default/owncalendars/full',
>> > data)
>> > You get this calendar:
>> >
>> > http://www.google.com/calendar/embed?src=voapj6io9gqq7uj9fs8u055tpg%40group.calendar.google.com
>> >
>> > Ray
>> > On Fri, Aug 7, 2009 at 8:55 AM, Phyrefly <[email protected]>
>> > wrote:
>> >>
>> >> London, Eng, United Kingdom
>> >
>> > >
>> >
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to