Desperate XML Help

I am having troubles getting my parsed XML file to display an image.
Here’s the code, any help would be great, my eyes are bleeding trying to get this to work. This is something that I did get from Kirupa’s list so hopefully someone can help.

products = new XML();
products.ignoreWhite = true;
products.onLoad = callback;
products.load(file);
function callback()
{
var main = [];
var mainMenu = this.firstChild.childNodes;
for (var a = 0; a < mainMenu.length; a++)
{
var type = mainMenu[a].attributes.type;
var contents = mainMenu[a].childNodes;
for (var b = 0; b < contents.length; b++)
{
switch (contents**.nodeName.toLowerCase())
{
case ‘title’ :
var title = contents**.firstChild.nodeValue;
break;
case ‘p_name’ :
var p_name = contents**.firstChild.nodeValue;
break;
case ‘url’ :
var url = contents**.firstChild.nodeValue;
break;
case ‘sizes’ :
var url = contents**.firstChild.nodeValue;
break;

here’s where I’m stuck:

case ‘image’ :
image = loadMovie(contents**.nodeName, h);
break;

		case 'product' :
			var product = [];
			product.push(contents**.attributes.name);
		}
		main[a] = {title:title, type:type, p_name:p_name, image:image, url:url, sizes:sizes, product:product};
	}
}

XML:

<?xml version=“1.0”?>

<products>
<resource type=“PullOvers”>
<title>Enter in all the info about the product here.</title>
<p_name>Hooded Sleeve</p_name>
<url>http://www.address.com</url>
<sizes>SM, Med, Lrg, X-Lrg</sizes>
<product name=“Dream”/>
<image>1.jpg</image>
</resource>
<resource type=“PullOvers”>
<title>Enter in all the info about the product here.</title>
<p_name>Camo Outdoor</p_name>
<url>http://www.address.com</url>
<sizes>SM, Med, Lrg, X-Lrg</sizes>
<product name=“Dream”/>
<image>2.jpg</image>
</resource>
</products>

Please, if anyone can help, i’ll repay in any audio related questions.

Much thanks.

here’s the link to the the mess:

http://www.workproject.com/product/