-
Notifications
You must be signed in to change notification settings - Fork 0
Description
There seems to be a problem with names containing the character & (for example in names of companies as in Gebrüder Bla & Blub). Exporting CMIF data with such names only works with JSON, no XML export is possible. In the case of importing, XML-based CMIF data containing the name encoded with the entity & cannot be loaded with the CMIF creator.
As reported from a user:
Wir haben in unserer Edition viele Absender, deren Firmennamen nach dem Schema "Firma Blabla & Co." oder "Gebrüder Bla & Blub" aufgebaut sind. Nachdem wir alle dieser Namen im CMIF-Creator eingetragen hatten, ließ sich das Briefverzeichnis nur noch als Json, jedoch nicht mehr als XML-Datei ausgeben. Durch herumprobieren haben wir dann herausgefunden, dass es am Zeichen & lag, dass vom CMIF-Creator wohl nicht als String behandelt wird. Unser Workaround war nun, die Json-Datei herunterzuladen, die & durch einen beliebigen String zu ersetzen, das ganze wieder in den CMIF-Creator zu laden und schließlich als XML-Datei ausgeben zu lassen. In der XML-Datei selbst haben wir dann die beliebigen Strings durch
&ersetzt. Nun ist die Datei vorerst fertig, allerdings kann sie auch nicht mehr in den Creator geladen werden.
This description makes it quite clear, that there is a problem with the handling of the & character for xml serialization/deserialization and also JSON import. We should check if this also happens for other XML entities such as <, > and so on.
A sample (XML) CMIF file is available if needed (I haven't attached it here yet, because I think it's not yet published).