* @param _elementName
* the name of the to-be-removed child
*/
public XNode removeNode( XNode _parentElement, String _elementName ) throws DOMException
{
XNodeList nodes = _parentElement.getChildNodes();
for ( int i=0; i<nodes.getLength(); ++i )
{
XNode node = nodes.item(i);
if ( node.getLocalName().equals( _elementName ) )
{
_parentElement.removeChild( node );
return node;
}