 <p>XML is one choice among many for serialization. You can do Java Serializable, XML, JSON, protobuf, or anything else that you'd like. I see no pitfalls.</p> <p>One advantage of XML is you can use JAXB to marshal and unmarshal objects. </p>