rakhimov / scram

Probabilistic Risk Analysis Tool (fault tree analysis, event tree analysis, etc.)
https://scram-pra.org
GNU General Public License v3.0
133 stars 54 forks source link

GUI: Preserve XML structure of input files upon save #197

Closed rakhimov closed 6 years ago

rakhimov commented 7 years ago

This is an important feature for version control and graceful treatment of input files not produced by SCRAM; however, it's not easy to guarantee and put a major constraint on the implementation.

In basic forms, the XML data binding must guarantee the original (derived from the input) XML structure, comments, order, layout.

rakhimov commented 6 years ago

This requires tight coupling of the MEF elements w/ XML DOM, which is a major rework and burden for the existing implementation.

Instead, guarantee stability of the MEF XML serialization. This is still friendly with version control systems, but there is likely to be formatting/ordering disagreements with other tools.