My Request : -->

$feed .= "<feed xmlns='http://www.w3.org/2005/Atom'
                        xmlns:batch='http://schemas.google.com/gdata/batch'
                        xmlns:gCal='http://schemas.google.com/gCal/2005'
                        xmlns:gd='http://schemas.google.com/g/2005'>
                <category scheme='http://schemas.google.com/g/2005#kind'
term='http://schemas.google.com/g/2005#event' />
                <entry>
                        <batch:id>1</batch:id>
                        <batch:operation type='insert' />
                        <title type='text'>Devang Parekh</title>
                        <content type='text'>This is test note</content>
                        <gd:transparency value='http://schemas.google.com/g/
2005#event.opaque'></gd:transparency>
                        <gd:eventStatus value='http://schemas.google.com/g/
2005#event.invited'></gd:eventStatus>
                        <gd:when startTime='2009-03-12' 
endTime='2009-03-13'></gd:when>
                </entry>
                </feed>";

Response : -->

HTTP/1.0 400 Bad Request
Expires: Thu, 12 Mar 2009 09:42:54 GMT
Date: Thu, 12 Mar 2009 09:42:54 GMT
Set-Cookie: S=calendar=PgTMhU30pWljBlXxMaEaew;Expires=Fri, 12-Mar-2010
09:42:54 GMT
Content-Type: text/html; charset=UTF-8
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
Server: GFE/1.3
X-Cache: MISS from gateway.avinashi.com
Connection: close

[Line 4, Column 48] Invalid root element, expected (namespace
uri:local name) of (http://www.w3.org/2005/Atom:entry), found (http://
www.w3.org/2005/Atom:feed



Can anybody tell me what is wrong in this code?? I m trying to add
multiple events using batch operation..

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