save marshalled items to an xml file