added metods to create XML