prints into new .xml file