save output to xml file in exec call