Implement XML serialization

Change-Id: I21e7f3f260aaedfa4fd1e17b423b0da2118deb36
Merge "Implement XML serialization"