Hi all,

   This is a common misunderstanding The document you give
the SVGGraphics2D is not the document that is streamed it
is simply used as a factory for constructing the elements
of the independent document the SVGGraphics2D constructs
for it's self.

   So adding a PI to the document won't do any thing.
What you probably want to do is get the root of the
generated SVG tree and manually append that to the document
(with your PI).


Cameron McCormack wrote:

Daniel Siino:

this used to work. Any ideas what could be the cause?


In SVGGraphics2D.stream(Element, Writer, boolean) try changing the line

  svgDocument.appendChild(n);

to

  svgDocument.appendChild(svgRoot);

Cameron



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to