Excluding DTD in SVG export

ChemAxon fa971619eb

19-12-2012 15:45:48

Hi, when using SVG export to generate structures for use in a web page I see a couple of irritations.


1. Its only possible as image export, even though the XML is really text. It means the output has to be handled as byte[] and then converted to String. Not a major prolem, but could it also be done using molecule.toFormat("svg") rather than molecule.toBinFormat("svg")


2. The DTD definition is always written at the top of the output. When embedding into HTML the DTD should not be there. Of course if can be removed, but could there be an option added to prevent writing the DTD?


Thanks


Tim 

ChemAxon fa971619eb

19-12-2012 15:59:51

Actually its the XML prolog as well that's a problem. The output is like this:


<?xml version="1.0"?>

<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
<svg ...>
...
</svg> 

What yould be nice to generate easily is just



<svg ...>
...
</svg> 

ChemAxon 5433b8e56b

28-12-2012 14:46:35

Hi Tim,


we will consider the timing of the request, and get back to you with the possible version where we will intend to extend svg export with this functionality.


I think it will be in the very near future, because it seem to be an easy development, but currently I can not promise a particular release.


Regards,
Istvan