If SGML contain external entity file references then application crashes.
SGML:
<!DOCTYPE ROOTELEM PUBLIC "CustomDtdRef" [
<!ENTITY % graphics SYSTEM "test_notWorking.SGE">
%graphics;
]>
<rootelem myAttr="attrVal" ><title>My custom title</title></rootelem>
SGML entity file
<!ENTITY DummyCgmRef SYSTEM "dummy.CGM" NDATA cgm>
Command used:
osx.exe -E200000 -fosx.log -xndata test_notWorking.SGM > test_notWorking.xml
Removing the command argument "-xndata" results in a created XML but it is missing the external entity (and does not replace invalid elements by self closing ones; I need that feature).
Alternatively removing <!ENTITY % graphics SYSTEM "test_notWorking.SGE">
%graphics; will also create an XML but without the referenced entities.
Having bigger files results in such output:
<?xml version="1.0"?>
<!DOCTYPE ROOTELEM [
<!ENTITY DummyCgmRef SYSTEM "
On the other hand when using the old sx.exe (v1.3.4 by James Clark) there are no issues.