Added ability to generate from a xml file, mainly will be used for testing