On Tue, Oct 23, 2012 at 2:22 PM, Mark Overmeer <mark at overmeer.net> wrote: > Or, you could base all your types of some base-class (very common to > have such in OO structures) which implements the identity toXML(). I've been trying to figure out how to write toXML() to be the identity. How would you do that? Thanks, ER