I have a log file with errors from a migration I am doing of mail systems. I need to take user migration error logs and make them readable for the end user. A log file might contain a hundred errors. Each error is in XML format. There is usually a great deal of extraneous text around the tags but the important stuff is in between the subject and date tags. What is the best way to parse this file and put the output into another file?
message subject march 11 2010 ....more tags