I'm trying to narrow how I'm receiving a 400 xml error when trying to
insert an item into Google Base.
Below is the XML that I'm creating to insert, which is directly out of
the documentation so I'm not sure what's wrong. All of my keys and
tokens appear correct.
FUNCTION gbase_xml(byval lis_id)
'--GENERATE xml - sample from gbase
gbase_xml = ("<?xml version='1.0'?>" & vbcrlf & vbcrlf & _
"<entry xmlns='http://www.w3.org/2005/Atom'
xmlns:g='http://base.google.com/ns/1.0'>" & vbcrlf & _
" <author>" & vbcrlf & _
" <name>Jane Doe</name>" & vbcrlf & _
" <email>[email protected]</email>" & vbcrlf & _
" </author>" & vbcrlf & _
" <category scheme='http://www.google.com/type'
term='googlebase.item'/>" & vbcrlf & _
" <title type='text'>He Jingxian's chicken</title>" &
vbcrlf & _
" <content type='xhtml'>" & vbcrlf & _
" <div xmlns='http://www.w3.org/1999/
xhtml'>Delectable Sichuan specialty</div>" & vbcrlf & _
" </content>" & vbcrlf & _
" <link rel='alternate' type='text/html' href='http://
www.host.com/123456jsh9'/>" & vbcrlf & _
" <g:item_type>Recipes</g:item_type>" & vbcrlf & _
" <g:cooking_time>30</g:cooking_time>" & vbcrlf & _
" <g:main_ingredient>chicken</g:main_ingredient>" &
vbcrlf & _
" <g:main_ingredient>chili peppers</g:main_ingredient>"
& vbcrlf & _
" <g:main_ingredient>peanuts</g:main_ingredient>" &
vbcrlf & _
" <g:spices_used>Szechuan peppercorn</g:spices_used>" &
vbcrlf & _
" <g:cook_technique>blackened</g:cook_technique>" &
vbcrlf & _
"</entry>")
END FUNCTION
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---