# Load photos via xml from folder query

**URL:** https://forum.kirupa.com/t/load-photos-via-xml-from-folder-query/218985
**Category:** Uncategorized
**Created:** [March 12, 2007, 10:57pm UTC](https://forum.kirupa.com/t/load-photos-via-xml-from-folder-query/218985 "2007-03-12T22:57:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jimmywoods](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jimmywoods](https://forum.kirupa.com/u/jimmywoods)
#### Post date: [March 12, 2007, 10:57pm UTC](https://forum.kirupa.com/t/load-photos-via-xml-from-folder-query/218985/1 "2007-03-12T22:57:24Z")

</div>

Hi, I have created a flash photo gallery that uses XML to read in the photos that get displayed.

The XML has a different line for every new photo path that i want to get flash to read in. eg (not the same as my one):

\<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?\>  
\<images\>  
\<pic\>  
\<image\>[http://www.kirupa.com/developer/mx2004/pg/kresge.jpg](http://www.kirupa.com/developer/mx2004/pg/kresge.jpg)\</image\>  
\<caption\>Kresge\</caption\>  
\</pic\>  
\<pic\>  
\<image\>[http://www.kirupa.com/developer/mx2004/pg/medialab.jpg](http://www.kirupa.com/developer/mx2004/pg/medialab.jpg)\</image\>  
\<caption\>Media Lab\</caption\>  
\</pic\>  
\<pic\>  
\<image\>[http://www.kirupa.com/developer/mx2004/pg/stata.jpg](http://www.kirupa.com/developer/mx2004/pg/stata.jpg)\</image\>  
\<caption\>Stata Center\</caption\>  
\</pic\>  
\</images\>

BUT, what if I wanted the photo gallery to grab photos sitting in a folder with me having to specify each and every photo file path in the XML ?  
Is there a way to get flash to load in all the pics from a folder so that all I have to do is add or delete photos from the folder and not have to edit the XML ?

Any help would be greatly appreciated.

Thankyou
