XML serialisation and deserialisation now supports attributes