how to Delete an element node with his attributes

i need a code simple on how to delete an element node and his attributes
[87 byte] By [zikman23] at [2007-9-26 3:57:57]
# 1
parentNode.removeChild(childNode);
dubwai at 2007-6-29 12:50:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
i am geting an error when i use the "removeChild" method"xmlManager.java": Error #: 300 : method removeChild(java.lang.String) not found in interface org.w3c.dom.Node at line 417, column 32how can it be?i used other method like "append"....
zikman23 at 2007-6-29 12:50:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

> i am geting an error when i use the "removeChild"

> method

>

> "xmlManager.java": Error #: 300 : method

> removeChild(java.lang.String) not found in interface

> org.w3c.dom.Node at line 417, column 32

>

> how can it be?

>

> i used other method like "append"....

removeChild takes a Node as an argument not a String. You need to parse the document into a Document and find the Node that contains your element. Look at the API for Element and Document and Node

dubwai at 2007-6-29 12:50:19 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...