fix output formatting for xml (not array)