Print a XML representation of an object

Simple example of printing a XML representation of an object.