Hi,

The JSVGCanvas.etSVGDocument() becames a VGDocument object. How could 
I produce (cast) such an object from a "normal" DOM Document?


--
public void viewTable(Document svgNode) 
        throws IOException, TransformerConfigurationException, 
               TransformerException 
    {
        // Muß herausfinden wie ich aus dem DOM einen SVGDocument erzeuge
        // SVGDocument node = (SVGOMDocument) svgNode ;

        DOMImplementation impl = SVGDOMImplementation.getDOMImplementation();
        SVGOMDocument node = new SVGOMDocument(null, impl) ;
        
        // node.copyInto((Node) svgNode);
        node.importNode((Node) svgNode,true);
        viewport.setSVGDocument((SVGDocument) node);

    }
--

Thanks,
Morad.

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

Reply via email to