Moved XML loader to a module of its own.