now outputs xml file