Added function to produce an xml version of the log file.