Hi Thomas,

On 12/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

...
   With all but the SVN version of Batik you need to use 'importNode'
to create nodes in a new document:

        batik.dom.svg.SVGDOMImplementation domImpl = new
SVGDOMImplementation;
        SVGDocument doc = domImpl.createDocument(SVG_NS, "svg", null);
        doc.appendChild(doc.importNode(otherSVGElement, true));


Okay.  So I was kinda on the right path.

My first though was to create an empty SVGDocument and then use
document.
> adoptNode(thatelement)  based on something recently posted here but that
gave
> me a not particularly helpful error:

   Adopt node is part of DOM Level 3, SVG 1.0/1.1 only used DOM Level 2.
The SVG version of Batik is adding support for DOM Level 3 methods.


Anyone recommend a good starter book on DOM?  DOM along with Java would be
nice.

Thanks!

      Phil
--
Visit http://www.darkisle.com for photos of castles, cairns and other
historic sites in the British Isles.

Reply via email to