Attempt to workaround problem reported about empty plc.xml after unrelated crash. Now, if etree model is corrupted in a way tostring() would generate an empty string, exception prevents saving.
Beremiz's user manual
=====================
Contents:
.. toctree::
:maxdepth: 2
install
start
edit
build
connectors
debug