Simple XML load problem

I think this should be simple buts its killing me.
I want to load an xml file, but I won’t know its name. The file is created dynamically and placed in a directory. It will be the only file in the directory. How do I call the file if the only thing I know is the extension .xml and the directory name?