I have a quick question for any xml programmers.
I currently have a small script like this
My question is can I set up some sort of on the fly array. That checks how many images are in the folder then sets-up the imagenod per amount of images?
Make sense???
Any help would be GREAT!!!!
I currently have a small script like this
However as one can see this would me updating this script every time the client upload new images.<images directory="images">
<imageNode jpegURL="img_0.jpg" thumbURL="tn_img_0.jpg" title="Image 0">Comments on Image 0</imageNode>
<imageNode jpegURL="img_1.jpg" thumbURL="tn_img_1.jpg" title="Image 1">Comments on Image 1</imageNode>
<imageNode jpegURL="img_2.jpg" thumbURL="tn_img_2.jpg" title="Image 2">Comments on Image 2</imageNode>
<imageNode jpegURL="img_3.jpg" thumbURL="tn_img_3.jpg" title="Image 3">Comments on Image 3</imageNode>
<imageNode jpegURL="img_4.jpg" thumbURL="tn_img_4.jpg" title="Image 4">Comments on Image 4</imageNode>
<imageNode jpegURL="img_5.jpg" thumbURL="tn_img_5.jpg" title="Image 5">Comments on Image 5</imageNode>
<imageNode jpegURL="img_6.jpg" thumbURL="tn_img_6.jpg" title="Image 6">Comments on Image 6</imageNode>
<imageNode jpegURL="img_7.jpg" thumbURL="tn_img_7.jpg" title="Image 7">Comments on Image 7</imageNode>
<imageNode jpegURL="img_8.jpg" thumbURL="tn_img_8.jpg" title="Image 8">Comments on Image 8</imageNode>
<imageNode jpegURL="img_9.jpg" thumbURL="tn_img_9.jpg" title="Image 9">Comments on Image 9</imageNode>
<imageNode jpegURL="img_10.jpg" thumbURL="tn_img_10.jpg" title="Image 10">Comments on Image 9</imageNode>
</images>
My question is can I set up some sort of on the fly array. That checks how many images are in the folder then sets-up the imagenod per amount of images?
Make sense???
Any help would be GREAT!!!!