On Friday 17 August 2001 01:08, Dinkar Ganti wrote:
> Hi Tom,
>
>
> Thanks for the reply. Can you suggest a method for outputting the Element
> on a ContentHandler. I am using JDOM that requires a Document for the
> purpose.
Try to remove the root element from the Document:
doc.removeChild(doc.getDocumentElement())
and then append the (pseudo root) element to the document:
doc.appendChild(g2d.getDOMTreeManager().getRoot()).
Depending on the DOM implementation you use, it may work (batik works, I
think crimson works and xerces fails.. not sure).
>
> Thanks,
>
> Dinkar
>
> -----Original Message-----
> From: Thomas Patterson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 16, 2001 5:46 PM
> To: Batik Users
> Subject: Re: Building an SVGDocument
>
>
> My guess on this is that the batik code does not add the generated root
> element to the document. It was created from the Document, but never added
> to it.
>
> Why not just use the root Element?
>
>
> ----- Original Message -----
> From: "Dinkar Ganti" <[EMAIL PROTECTED]>
> To: "Batik-Users" <[EMAIL PROTECTED]>
> Sent: Thursday, August 16, 2001 2:01 PM
> Subject: Building an SVGDocument
>
> > Hello,
> >
> > I am trying to access the Document from SVGGraphics2D. I am able to see
>
> the
>
> > svgRoot element, but for some reason, the document element is empty. My
> > question is:
> >
> > How do I get the document from an SVG Generator?
> >
> > Thanks,
> >
> > Dinkar
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]