hi,

PHP is a good solution.
A simple script such as
PHP Code:
<?php
//path to directory
$directory './images/';
 
//get all image files with a .jpg, .jpeg, .png or .gif extension
$images glob("$directory{*.gif,*.jpg,*.jpeg,*.png}"GLOB_BRACE);

// view the array with the images' names
print_r($images);
?>
does what you want.

After having the images in an array, you can still generate an xml file dynamically.