array to XML