generateFromXML