trim \r\n in xml output