<?php

$xmlData = "<products>\n\n";

$images = array(
	array(
		'artist' => 'Sample', 
		'smImage' => 'sample2_sm.jpg', 
		'lgImage' => 'sample2_lg.jpg'
	),
	array('artist' => 'Sample', 'smImage' => 'sample_sm.jpg', 'lgImage' => 'sample_lg.jpg'),
	array('artist' => 'Sample', 'smImage' => 'sample2_sm.jpg', 'lgImage' => 'sample2_lg.jpg'),
	array('artist' => 'Sample', 'smImage' => 'sample_sm.jpg', 'lgImage' => 'sample_lg.jpg'),
	array('artist' => 'Sample', 'smImage' => 'sample2_sm.jpg', 'lgImage' => 'sample2_lg.jpg'),
	array('artist' => 'Sample', 'smImage' => 'sample_sm.jpg', 'lgImage' => 'sample_lg.jpg'),
	array('artist' => 'Sample', 'smImage' => 'sample2_sm.jpg', 'lgImage' => 'sample2_lg.jpg'),
	array('artist' => 'Sample', 'smImage' => 'sample_sm.jpg', 'lgImage' => 'sample_lg.jpg'),
	array('artist' => 'Sample', 'smImage' => 'sample2_sm.jpg', 'lgImage' => 'sample2_lg.jpg')
);

for($i=0; $i < count($images); $i++)
{
	$xmlData .= "  <product id=\"" . $i . "\">\n";
	$xmlData .= "    <artist>" . $images[$i]['artist'] . "</artist>\n";
	$xmlData .= "    <smImage>" . $images[$i]['smImage'] . "</smImage>\n";
	$xmlData .= "    <lgImage>" . $images[$i]['lgImage'] . "</lgImage>\n";
	$xmlData .= "</product>\n\n";
}

$xmlData .= "</products>";

header("type: text/xml");

print $xmlData;

?>