Can anyone provide sample source code for xml parsing using photoshop javascript?

Posted by panofish on Stack Overflow See other posts from Stack Overflow or by panofish
Published on 2010-03-29T05:14:24Z Indexed on 2010/03/29 5:23 UTC
Read the original article Hit count: 543

Filed under:
|
|
|
|

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.

© Stack Overflow or respective owner

Related posts about photoshop

Related posts about JavaScript