Hi Michael,
> SVGDocument doc = (SVGDocument) svgDoc.cloneNode(true);
> In the 1.7 batik it works.... in the 1.8pre not ! see error above...
Please always state in which SVN revision (or nightly build date) did
this occur: "1.8pre" alone is not sufficient...
> switch (importedNode.getNodeType()) {
>
> .... and the type is 10 .. so it goes to default and throws the exception
Type 10 stands for DOCUMENT_TYPE_NODE [1] (<!DOCTYPE ...). Note that
"There is no DTD for SVG 1.2" [2] so you may simply leave it out.
Nevertheless, I believe it would be useful if you could reduce and
attach a small SVG file which would raise such exception (I'd say you
only need to leave the doctype and little more).
That makes me wonder: are you trying to clone a SVG 1.1 document into
a 1.2 or vice-versa? I'm not sure if Batik is able to do that (it can
be unsupported or an underlying bug, more information is required).
Hope this helps,
Helder
[1] http://www.w3schools.com/Dom/dom_nodetype.asp
[2] http://www.w3.org/TR/SVGTiny12/intro.html#defining
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]