I thought set_namespace might work, but have to include a product id in the link and I'm not sure how to structure it.
These first 5 lines get things rolling and the last 2 lines which are in a foreach loop generate the node that needs to have a link to the clients site and to the information stored for the product.
Expand|Select|Wrap|Line Numbers
- <?php
- $dom = domxml_new_doc('1.0');
- $feed = $dom->append_child($dom->create_element("feed"));
- $feed->set_attribute('xmlns','http://www.w3.org/2005/Atom');
- $feed->set_namespace('http://base.google.com/ns/1.0','g');
- $feed->set_namespace('http://linktosite.com/xlink','xlink');
- foreach(blah as blahh){
- $image = "blahblah";
- $gimage = $entry->append_child($dom->create_element('g:image_link'));
- $gimage->append_child($dom->create_text_node($image));
- }
- ?>
Any help would be wonderful. I'm running out of Valium.