Apologies in advance for what is a complete newbie question...
I'm creating a simple drawing application using Batik. I am adding a <rect>
element with id = "temp" to a <g> element, which I am then later trying to
remove and replace with another <rect> element also with id = "temp". I'm
removing the element like this:
Element e = doc.getElementById("temp");
e.getParentNode().removeChild(e);
This works fine when I remove the first element, but needs to be called
twice to remove the second element and three times to remove the third, and
so on. This makes me suspect that the original <rect> elements are not being
removed correctly from the <g> element. Am I doing something obviously wrong
when removing the "temp" elements? Is it a mistake to add Elements with the
same id, even after others have been removed? Any help would be greatly
appreciated!
Oliver
--
View this message in context:
http://www.nabble.com/Removal-of-Elements-from-a-%3Cg%3E-Element-tp15111102p15111102.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]