Cannot Add and Remove Event (XML not saved)

i’ve an issue about saving and removing event from xml.
recently i’ve tried to use the sample that using serialization xml using xml_writer.php but it still issuing this problem.

please is there any one know the fix for this?

Be sure to use

scheduler.config.prevent_cache = true;

XML caching is main reasons of problems in case of static xml files.