thedailynathan/Digsby-Log-Merge — pull request #1 by mikedougherty (2012-01-17 09:12:22+00:00)
Title: Let me know what you think of this...

I was able to cut out a lot of extra stuff by treating the files as XML nodes instead of lines of text. The only thing that might throw a wrench in this plan is that the content of one of the files had a where it should have had a (thus making it invalid XML). I modified the test file so it would have valid content but if digsby actually outputs invalid XML, this approach may not be viable (... without a 3rd party library that can handle malformed SGML content, such as lxml or BeautifulSoup).