Conversion of various (legacy) data formats to and from XML