`setDefaultXmlSerializer` is a better name. `add` sugguest you deal with a collection.