array and xml converter