Automatically gnerating XML?

I don’t know if such a thing exists but does anyone know of a program that automatically generates xml based on the contents of a folder?

For example, if I have 100 images in a folder, instead of going through and typing the XML from scratch, is their a program that can generate the XML from scratch.

Cheers