ElementTree
This would probably be better as a module, but I wanted to verify first that this would yield the right results.