Hi,
I try to add custom attributes when I send and Entry element in order
to create a new entry, as followed:
1. I added xmlns:c="http://base.google.com/cns/1.0"; to the entry
element.
2. I added <c:another type="string">param val</c:another> under the
entry element.
3. I see the entry published successfully, but without the additional
custom attribute.

Here is the full request:

POST /base/feeds/12345/items HTTP/1.1
Host: www.google.com
Connection: close
User-Agent: Simple-GBase-1.0 base_api/1.0
Content-Type: application/atom+xml
Authorization: AuthSub token="MyToken"
X-Google-Key: key=MyKey
Accept-encoding: identity
Content-length: 1297

<?xml version="1.0" standalone="yes"?>
<entry xmlns="http://www.w3.org/2005/Atom"; xmlns:g="http://
base.google.com/ns/1.0" xmlns:c="http://base.google.com/cns/
1.0"><author><name>tantan</name><email>[email protected]</email></
author><title>title: 17:09</title><content type="text">bla bla: have
text</content><g:item_type type="text">testrecipes</
g:item_type><g:item_language type="text">EN</
g:item_language><g:application type="text">http://www.simple.co.il</
g:application><g:expiration_date
type="dateTime">2009-07-24T00:00:00.000Z</
g:expiration_date><g:image_link type="url">http://www.simple.co.il/
files/9998.jpg</g:image_link><g:image_link type="url">http://
www.simple.co.il/files/9999.jpg</g:image_link><g:contact_phone
type="text">052-8957458</g:contact_phone><g:area type="intUnit">90
square meter</g:area><g:bedrooms type="number">3</
g:bedrooms><g:feature type="text">&#x5DE;&#x5D6;&#x5D2;&#x5DF;,
&#x5DE;&#x5E8;&#x5D5;&#x5D4;&#x5D8; &#x5D7;&#x5DC;&#x5E7;&#x5D9;</
g:feature><g:floor_number type="text">3</g:floor_number><g:location
type="location">&#x5EA;&#x5DC;-&#x5D0;&#x5D1;&#x5D9;&#x5D1;</
g:location><g:parking type="number">1</g:parking><g:price
type="floatUnit">4000 ILS</g:price><g:provider_class
type="text">private</g:provider_class><c:another type="string">param
val</c:another></entry>

Any ideas?
T.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base 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-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to