im having trouble writing a script that will create an xml file for me
Code:
<images>
<pic>
<image>photos/1.jpg</image>
<thumbnail>photos/s1.jpg</thumbnail>
<caption></caption>
</pic>
<pic>
<image>photos/2.jpg</image>
<thumbnail>photos/s2.jpg</thumbnail>
<caption></caption>
</pic>
</images>
(and it repeats the <pic> to </pic> till end)
i would like a script that writes that for as many images as i want.
it can write it in a text file so i can copy it over
and i would like to be able to add some captions.
How hard would it be to write a script that does this and can someone write it.
im thinking maybe a loop that adds 1 to its variable (that puts the number in the xml code) each time. The loop should go till it gets to 100 if possible.
Last edited by simster; 02-27-2008 at 05:20 AM..
|