headway into xml result writing