add SerializeToXml and DeserializeFromXml