A fast bash based solution for executing a find on a directory with a lot of files that you want to log to a file:
find /my/data/ -name '*.xml' -type f -fprint my_xml_files.txt
This example looks in the /my/data/ directory for all files with the xml extension and then writes the results to the my_xml_files.txt file.