ec-jrc / re3gistry

Re3gistry is a reusable open source solution for managing and sharing ‘reference codes’, ensuring semantic interoperability across organisations.
European Union Public License 1.2
29 stars 21 forks source link

Malformed XML for XML export when label contains whitespace #124

Closed heidivanparys closed 2 years ago

heidivanparys commented 2 years ago

Export to XML (format=xml) gives malformed XML when the label contains whitespace, see screenshots.

I don't have a solution, but one option could perhaps be to use the local id of the field in the export, instead of the label of that field in the requested language.

image

image

image

emanuelaepure10 commented 2 years ago

This https://github.com/ec-jrc/re3gistry/commit/e6820bfd0d8c148ea656a057cd0e0aea811d05a6 should solve the problem both for XML and JSON