ease-crc / soma

The Socio-physical Model of Activities (SOMA) is a formal activity model for embodied agents that need to operate their body to generate motions that cause intentional effects in the physical and social world.
GNU Lesser General Public License v3.0
16 stars 22 forks source link

Minor fix for xml to json converter #271

Closed sasjonge closed 2 years ago

sasjonge commented 2 years ago

The new ontometric script creates an xml that contains new lines after each field. Somehow the xml2json script does not work correctly with it. See the broken output here:

https://github.com/ease-crc/soma/blob/1f6fe19f549152d957fdaac6e044a90434750dbe/files/current/metrics.json

{"Basemetrics": {"Axioms": {"#tail": "\n", "#text": "3797"}, should have the form

{"Basemetrics": {"Axioms": "3797",

This PR is a simple fix, that will remove the new lines. With this changes we should see the metrics on the website again.