> I did some search and found this to be the most responsive group.
> Could somebody please show me using code how I could delete a child
> node (off a specific parent node) from XML using DOM ?
See <http://java.sun.com/j2se/1.5.0/docs/api/org/w3c/dom/Node.html>.
There is a removeChild(Node) method.

Signature
Thomas
Buddha <happybuddha1@gmail.com> wrote in news:1186415699.933494.81690
@i38g2000prf.googlegroups.com:
> Could somebody please show me using code how I could delete a child
> node (off a specific parent node) from XML using DOM ?
You would use the method org.omg.dom.Node.removeChild(Node oldChild) on
the parent node of the node which you wish to delete, passing a reference
to the node that you wish to delete as the 'oldChild' parameter, so:
Node parent = node.getParentNode();
if (parent != null)
{
parent.removeChild(node);
}
Cheers!
GRB

Signature
---------------------------------------------------------------------
Greg R. Broderick usenet200705@blackholio.dyndns.org
A. Top posters.
Q. What is the most annoying thing on Usenet?
---------------------------------------------------------------------
Buddha - 08 Aug 2007 03:59 GMT
thanks Thomas and Greg for your replies.
I will post back with whatever code I figured out.
thanks again.
Regards,