xibosignage / xibo-linux

Xibo for Linux - Digital Signage Player
https://xibo.org.uk/xibo-for-linux
GNU Affero General Public License v3.0
76 stars 54 forks source link

Make CMS/player settings files valid XML #233

Closed Stivius closed 3 years ago

Stivius commented 3 years ago
  1. Now cmsSettings.xml and playerSettings.xml are valid XML files.
  2. Version tracking system has been implemented for XML files. How it works? Every time we update an XML file by changing nodes' names, adding root nodes, changing structure of the document we introduce backward incompatible changes which force us to recreate files from scratch. This could be very inconvenient for users especially when we're talking about CMS settings. With this system we add a backward compatible file loader when we change document structure (update to newer version). This loader loads content from the old format and adjusts it to up-to-date format which is then parsed correctly by other player modules. It helps us to do the transition from old to new format without user interaction.