Dumping history into a XML file.