I recently stumbled across some very weird behaviour when using XMLWriter
inside an exception handler.
Depending on the exception that is being thrown XMLWriter is able to write
the file or not.
I opened a bug report with a (kind of) simple reproduction script:
Unfortunately, the observed behaviour seems so random that I don't know
where to start my search for a solution...
Does anybody have a few minutes to look at this issue?