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.