Get xml output from array