Added so that the levelbuilder can also take an xml string instead of an file