Implemented XML export