Context managers are very useful in writing XML in python. You can use the...
Context managers are very useful in writing XML in python. You can use the `__exit__()` method to delete the file. Another useful companion is StringIO. Write to stringIO and the XML will stay off the hard drive too, followed by `gc.collect()` to really get rid of the XML.
Self-replies
data format jokes never get old