Hi, SVGDocument doc = (SVGDocument)((svgCanvas.getSVGDocument()).cloneNode(true));
should work. -Nikhil On Tue, 20 Jul 2004, Bartosz Celmer wrote: > Hello. > > I need to copy SVGDocument and then modify it. I try to find any solution in > batik mailing list but with no results. I'm looking for something like this: > > > > SVGDocument doc = new SVGDocument(svgCanvas.getSVGDocument()); > > But of course in there is no method like this in batik. Problem is that when > I do something like this: > > SVGDocument doc = svgCanvas.getSVGDocumet(); > > then I change smoothing in doc, it it's also changed in svgCanvas (it's of > course normal - doc is just reference not new object). What I need is > exactly copy of SVGDocument stored in svgCanvas. > > > > Thanks for any help > > Bartek > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]