Preserve order in XML

Issue #601 new
Max Chernyak created an issue

TLDR: would be awesome to keep XML ordered by something (ID, Title, doesn't matter).

Finally bought premium license and started organizing my collection. I'm a dev (ruby, elixir), and was happy to learn that db is just a plain xml file. So I wrote some scripts against it and put it in a git repo. However, sometimes a change on the LaunchBox side seems to needlessly reorder the entire file. This makes git diffs almost impossible to follow. Would you consider keeping the order preserved? It would be a major enhancement for this use case.

Comments (2)

  1. Robert Taylor

    I would like to bump again the idea for a MySQL lite DB in place of the XML file. To solve this bug, I would set the table key to the GameDB key. That way, the database would not be user restricted, it could be freely shared. It could save you lots on server bandwidth for users with no-intro sets. Users could do a database import for a system with all metadata preloaded. Any user could upload edits or corrections to games and because the key is set to a globally agreed upon value, interpatibility will work.

  2. Max Chernyak reporter

    I'm all for sharing data, but that doesn't mean it has to be an SQL db, everything you say can be done with XML format too. I absolutely love the plain xml file which I can open with a text editor, track in git, etc.

  3. Log in to comment