Serialise an interface/instance as XML