Added ability to load an XML file.