new xml encoding as an attempt to deal with arrays