# Simple XML load problem

**URL:** <https://forum.kirupa.com/t/simple-xml-load-problem/243057>\
**Category:** Uncategorized\
**Created:** [November 2, 2007, 11:05am UTC](https://forum.kirupa.com/t/simple-xml-load-problem/243057 "2007-11-02T11:05:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karmaboy](https://avatars.discourse-cdn.com/v4/letter/k/49beb7/32.png) [@karmaboy](https://forum.kirupa.com/u/karmaboy)\
**Post date:** [November 2, 2007, 11:05am UTC](https://forum.kirupa.com/t/simple-xml-load-problem/243057/1 "2007-11-02T11:05:09Z")

</div>

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?
