Simple conversion of an array to XML and back again