You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Jody Schofield <js...@ca.ibm.com> on 2004/02/06 16:50:37 UTC
SVGDOM: Merging two Documents...
Has anyone copied nodes from one document into another? I have a wrapper
around the SVGGraphics2D object and on my wrapper I'm trying to add an
interface that passes in an SVG image. I'm going through the children of
the SVG Image and trying to add the nodes using the SVGGraphics2D
DOMTreeManager as a new group. The group is created from the document.
Here is the error message I get:
org.w3c.dom.DOMException: The given node (type: 1, name: g) was not
created by the current document.
thanks for all replies.
regards,
Jody
Re: SVGDOM: Merging two Documents...
Posted by Jody Schofield <js...@ca.ibm.com>.
That seems to be the trick. Thanks Bibek!
Hi,
You need to use org.w3c.dom.Document.importNode(Node importedNode, boolean
deep).
Good luck,
- Bibek
On Fri, 6 Feb 2004, Jody Schofield wrote:
> Has anyone copied nodes from one document into another? I have a
wrapper
> around the SVGGraphics2D object and on my wrapper I'm trying to add an
> interface that passes in an SVG image. I'm going through the children
of
> the SVG Image and trying to add the nodes using the SVGGraphics2D
> DOMTreeManager as a new group. The group is created from the document.
> Here is the error message I get:
>
> org.w3c.dom.DOMException: The given node (type: 1, name: g) was not
> created by the current document.
>
>
> thanks for all replies.
>
> regards,
> Jody
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: SVGDOM: Merging two Documents...
Posted by Bibek Sahu <sc...@dodds.net>.
Hi,
You need to use org.w3c.dom.Document.importNode(Node importedNode, boolean deep).
Good luck,
- Bibek
On Fri, 6 Feb 2004, Jody Schofield wrote:
> Has anyone copied nodes from one document into another? I have a wrapper
> around the SVGGraphics2D object and on my wrapper I'm trying to add an
> interface that passes in an SVG image. I'm going through the children of
> the SVG Image and trying to add the nodes using the SVGGraphics2D
> DOMTreeManager as a new group. The group is created from the document.
> Here is the error message I get:
>
> org.w3c.dom.DOMException: The given node (type: 1, name: g) was not
> created by the current document.
>
>
> thanks for all replies.
>
> regards,
> Jody
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org