Thomas,

Thanks, I would have bet the ranch that I had tried that combination as I
remember the pattern from a previous email in the batik archive, but, in any
case, the code snip you provided,

       rn.getParentNode().removeChild(rn);

now deletes the node appropriately,

Thanks again,

KWL


On 11/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi K.W.

"K. W. Landry" <[EMAIL PROTECTED]> wrote on 11/23/2006 05:05:51 PM:

> I've tried every iteration of "removing DOM node" I can find, they all
fail.

   I think your basic problem is that you are trying to remove a node
from a node that is not it's parent:

>             SVGOMDocument sd = (SVGOMDocument)ad;
>             Node rn = sd.getElementById("BarChart"); //.getParentNode();
>             sd.removeChild(rn);

    The last line should probably be:
        rn.getParentNode().removeChild(rn);

> And the error produced: "The child node (type: 1, name: g) is missing."

    Yes, the node 'rn' is missing from the child node list of 'sd'.


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


Reply via email to