# Program that generates an xml file for Photo Gallery

**URL:** <https://forum.kirupa.com/t/program-that-generates-an-xml-file-for-photo-gallery/232471>\
**Category:** flash\
**Created:** [July 14, 2007, 3:57am UTC](https://forum.kirupa.com/t/program-that-generates-an-xml-file-for-photo-gallery/232471 "2007-07-14T03:57:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcuneo](https://avatars.discourse-cdn.com/v4/letter/f/439d5e/32.png) [@fcuneo](https://forum.kirupa.com/u/fcuneo)\
**Post date:** [July 14, 2007, 3:57am UTC](https://forum.kirupa.com/t/program-that-generates-an-xml-file-for-photo-gallery/232471/1 "2007-07-14T03:57:41Z")

</div>

I’m looking into a way of making a small program that would look for images within a folder and its subfolders and create an xml file with the name of the file as the picture name, its path, the name of the folder as a category for the pictures and the thumbnail path.  
So basically using the same type of format from the kirupa photogallery w/thumbanails:

[**[FONT=Courier New][COLOR=#ff0000]-[/COLOR][/FONT]**](file:///C:/Documents%20and%20Settings/susana%20cuneo/Desktop/images.xml#) [COLOR=#0000ff]\<[/COLOR][COLOR=#990000]images[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[**[FONT=Courier New][COLOR=#ff0000]-[/COLOR][/FONT]**](file:///C:/Documents%20and%20Settings/susana%20cuneo/Desktop/images.xml#) [COLOR=#0000ff]\<[/COLOR][COLOR=#990000]pic[/COLOR][COLOR=#0000ff]\>[/COLOR]  
**[FONT=Courier New][COLOR=#ff0000] [/COLOR][/FONT]** [COLOR=#0000ff]\<[/COLOR][COLOR=#990000]image[/COLOR][COLOR=#0000ff]\>path of the image[/COLOR][COLOR=#0000ff]\</[/COLOR][COLOR=#990000]image[/COLOR][COLOR=#0000ff]\>[/COLOR]

**[FONT=Courier New][COLOR=#ff0000] [/COLOR][/FONT]** [COLOR=#0000ff]\<[/COLOR][COLOR=#990000]caption[/COLOR][COLOR=#0000ff]\>[/COLOR] **name of the file** [COLOR=#0000ff]\</[/COLOR][COLOR=#990000]caption[/COLOR][COLOR=#0000ff]\>[/COLOR]

**[FONT=Courier New][COLOR=#ff0000] [/COLOR][/FONT]** [COLOR=#0000ff]\<[/COLOR][COLOR=#990000]category[/COLOR][COLOR=#0000ff]\>[/COLOR] **name of the folder** [COLOR=#0000ff]\</[/COLOR][COLOR=#990000][COLOR=#990000]category[/COLOR][/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff]\<[/COLOR][COLOR=#990000]thumbnail[/COLOR][COLOR=#0000ff]\>path of the thumbnail[/COLOR][COLOR=#0000ff]\</[/COLOR][COLOR=#990000]thumbnail[/COLOR][COLOR=#0000ff]\>[/COLOR]

**[FONT=Courier New][COLOR=#ff0000] [/COLOR][/FONT]** [COLOR=#0000ff]\</[/COLOR][COLOR=#990000]pic[/COLOR][COLOR=#0000ff]\>[/COLOR]  
[COLOR=#0000ff][/COLOR]  
[COLOR=#0000ff]thanks a lot Fernando.[/COLOR]
