Implementet basic loading of xml files.