when XMLFileContainer writes a file, it should write to the
side, and only move over when all is okay - and perhaps
there needs to be a way for XMLWriter to signal all okay,
since if it throws in the middle we don't want the file
written over.
This has been implemented and mostly tested as of today.
Only caveat is that the test doesn't check that XMLFileContainers with
sub-containers are properly handled. In fact, in Safe mode they will not
be since in is not possible to rename a dir onto a non-empty dir, and
deleting a dir isn't implemented.
Also, the test in xmlutil-test.cpp, could do a nicer job of cleaning the
directly (in particular, handling non-empty dirs.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=219202
This has been implemented and mostly tested as of today.
Only caveat is that the test doesn't check that XMLFileContainers with
sub-containers are properly handled. In fact, in Safe mode they will not
be since in is not possible to rename a dir onto a non-empty dir, and
deleting a dir isn't implemented.
Also, the test in xmlutil-test.cpp, could do a nicer job of cleaning the
directly (in particular, handling non-empty dirs.)