Thanks for the response, monkeyboy, I've tried that and it works fine. The trouble I have, however, is when I add title and description data it stops working. I used CDATA to accommodate special characters but that made no difference. Here's the strange thing, though, if I save the xml to the file gallery.xml and use that as the xmlURL, it works fine...
This is my code:
$xmlcode = '<?xml version="1.0" encoding="UTF-8"?>';
$xmlcode .= "<tiltviewergallery>";
$xmlcode .= "<photos>";
while ($image_row = tep_db_fetch_array($products_query)) {
$xmlcode .= '<photo imageurl="images/' . $image_row&['products_image'] . '" linkurl="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $image_row['products_id']) . '">';
$xmlcode .= "<title><![[CDATA[" . $image_row['products_name'] . "]]></title>";
$xmlcode .= "<description><![CDATA[" . $image_row['products_description'] . "<br><br>" . $currencies->format($image_row['products_price']0 . "]]></description>";
$xmlcode .= "</photo>";
} // end while
$xmlcode .= "</photos>";
$xmlcode .= "</tiltviewergallery>";
echo $xmlcode;
If I dump the contents of $xmlcode and put it into gallery.xml manually, it works. I'm just wondering if there are any special characters in the data that get lost when written to a file but break the direct data stream...
Cheers