To recursively find *.xml using a glob starting from the directory /tmp/scanning/ please have a look at this sample. It works with Linux Ubuntu and does what you want. It works like the Unix find utility. I didn't test it on other OS than Ubuntu, but you should only need to change the filename separator.