3 messages in com.googlegroups.google-base-data-apiRe: Retrieving products with multiple...
FromSent OnAttachments
Chuender17 Jun 2007 09:09 
Jeff S19 Jun 2007 18:13 
Chuender20 Jun 2007 21:46 
Subject:Re: Retrieving products with multiple images, image not displaying
From:Chuender (chue@gmail.com)
Date:06/20/2007 09:46:59 PM
List:com.googlegroups.google-base-data-api

Thanks for your post, Jeff. This is what I ended up doing:

$image_link = $image_link[0]->childNodes->item(0)->data;

It took a while as I had no prior encounter with DOM.

On Jun 19, 6:13 pm, Jeff S <j.@google.com> wrote:

Hi Chuender,

The DOMElements in your array should have the following XML structure: <g:image_link type='url'>http://www.bhphotovideo.com/images/items/ 305656.jpg</g:image_link> So you should be able to get the URL of the image by getting the text node in the DOMElement. To find the text node, you'll need to iterate through the children and see if nodeType == XML_TEXT_NODE . Please let me know if you hit any snags, I wasn't sure how much you've worked with DOM in PHP.

Thank you,

Jeff

On Jun 17, 9:10 am, Chuender <chue@gmail.com> wrote:

I am able to retrieve product images for entries with only one image, but am not able to retrieve and display entries with multiple images, e.g., multiple <g:image_link> tags.

I'm using php with ZendGdata-0.9.3-Beta.

For entries with multiple <g:image_link> tags $feed_entry->image_link() returns
an array of DOMElements and I am unable to use

the DOMelements to access the individual images.

Please help.

Thanks.