This class can be used to generate XML file with the map of the files from a directory.
It traverses a given directory recursively and generate nested XML document that lists the names of all files and sub-directories contained in the input directory.
Download:

263 Responses to Create Sitemap :: Generate of map of the files of a directory in XML