add xml to array conversion