Jump to content

PHP code help for xml data feed


Recommended Posts

I am getting an error in an xml product feed:

error on line 16 at column 69: EntityRef: expecting ';'

 

Line 16 of the xml file is this:

<link>http://www.whispardesign.com/index.php?id_product=8&controller=product</link>

 

Manually inserting the friendly url instead of the product controller url, fixes the error - but with many products that is a pain...

<link>http://www.whispardesign.com/window-treatment-cornice/8-cornice-sconce-mission</link>

 

The line of code in the php file that outputs the link is here:

$item_data .= $this->_xmlElement('link',$product_link);

 

Any idea on how to fix this? Many thanks.

Edited by Whispar1 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...