Added the ability to load XML files.