Implemented XML export.