|Subject:||Re: BridgeException afer deepCloneDocument|
|From:||"Kenneth B. Harwood"|
|Date:||Thu, 18 Aug 2005 12:20:48 -0700|
Thanks TD. Your guidance set me on the right course. My code now looks like this:
SVGOMDocument doc1= (SVGOMDocument) jSVGCanvas1.getSVGDocument();
DOMImplementation imp= doc1.getImplementation();
SVGOMDocument doc2= (SVGOMDocument) deepCloneDocument(doc1, imp);
URL url= "" // get the source doc's URI
doc2.setURLObject(url); // put it in the copy's URI
setSVGDocument(doc2); // bravo!
----- Original Message -----
From: "Thomas DeWeese" <Thomas.DeWeese@xxxxxxxxx>
Sent: Thursday, August 18, 2005 2:49 AM
> As I said earlier for internal references
> (URL's that start with '#') or absolute references
> (URL's that start with '<protocol>://') it shouldn't
> be needed and I consider all such cases to be errors.
Could you please be more specific? Which do you
consider to be in *error*: the API-rejected SVG file,
the SVG spec, or the batik API?
> The most logical thing would be the same as
> the source documents. However this would only
> 'hide' the problem (which may be all you are
> interested in doing).
Yes. I guess I've hid the problem. I'm curious
about what it would take to *fix* the problem.
> This isn't an SVG URI thing it's how all
> URL/URI's work (or are supposed to work).
- Ken H.
|<Prev in Thread]||Current Thread||[Next in Thread>|
|Previous by Date:||Re: RMI: getElementByID returns null, Thomas DeWeese|
|Next by Date:||How come my piechart is gray when using svg, Lila Tran|
|Previous by Thread:||loadSVGDocument generates NullPointerException, Kenneth B. Harwood|
|Next by Thread:||How come my piechart is gray when using svg, Lila Tran|
|Indexes:||[Date] [Thread] [Top] [All Lists]|