When generating Sessions output with the CMDI profile "imdi-session",
invalid XMLs are generated.
When developing the app, I oriented myself towards Arbil, not realizing that Arbil produces invalid XML too, when not checking for XML conformance and patch invalidites manually.
imdi_cmdi_generator.js should take the XSD of the "imdi-session" profile as template, not XML files produced by Arbil.
When generating Sessions output with the CMDI profile "imdi-session", invalid XMLs are generated. When developing the app, I oriented myself towards Arbil, not realizing that Arbil produces invalid XML too, when not checking for XML conformance and patch invalidites manually. imdi_cmdi_generator.js should take the XSD of the "imdi-session" profile as template, not XML files produced by Arbil.
imdi-session XSD: http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/profiles/clarin.eu:cr1:p_1271859438204/xsd
This does not concern IMDI files or CMDI Corpus files.