views:

98

answers:

0

Here is a sample of a simple xml file I want to parse using photoshop javascript:

<Pgen>
<renderSettings>
<imageWidth>1000</imageWidth>
<imageHeight>600</imageHeight>
<SAA>16</SAA>
<bgColor>E1E1E1</bgColor>
<filePrefix></filePrefix>
<suffix>.jpg</suffix>
</renderSettings>
<coverPage>
<template>//TEMPLATE/Product.psd</template>
<title>2010 Mazda</title>
<subtitle>Exterior</subtitle>
<date>March 26, 2010</date>
</coverPage>
<images>
<template>/TEMPLATE/Product2.psd</template>
<image file="file1.png" title="2010 Mazda" subtitle="LS" note="" exclude="yes"/>
<image file="file2.png" title="2010 Mazda" subtitle="1LT" note="Shows SS trim" exclude="no"/>
<image file="file3.png" title="2010 Mazda" subtitle="2LT" note="" />
<image file="file4.png" title="2010 Mazda" subtitle="2LT" note="" />
</images>
</Pgen> 

I've found the toolkit documentation, but it doesn't have much sample code and I can't find any sample code by searching google.