Added xml (de)serialization.