Hi Adrian,
AdrianSevan <[EMAIL PROTECTED]> wrote on 11/29/2006 01:44:20 AM:
> I succeeded to open a SVG document and
> draw on it a rectangle and save the new file, but I cannot merge 2 SVG
files
> and save the result.
> doc = sax.createSVGDocument(uri);
> doc2 = sax.createSVGDocument(uri2);
>
> x = doc2.getDocumentElement();
x = doc.importNode(x, true);
doc.getDocumentElement().appendChild(x);
> /* remove this, not sure what it was for */
> // x.setNodeValue("svg");
The code setting up the canvas should be reordered, from:
> svgCanvas.setDocument(doc);
> p.add(svgCanvas);
> svgCanvas.setVisible(true);
> f.validate();
To:
p.add(svgCanvas);
f.validate();
svgCanvas.setVisible(true); // probably not needed.
svgCanvas.setDocument(doc);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]