You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by tom john <cy...@yahoo.com> on 2002/01/20 00:10:37 UTC
Problem removing nodes
Hi,
I have an xml document. I have a method which using
Xpath returns required nodes (1 or more). These nodes
I have to remove from the main document.
Xpath returns NodeIterator. I do the following
procedure
NodeIterator ni = getNodesUsingXPath(�);
Node node = null, parentNode = null;
Try{
While((node = ni.nextNode()) != null)
{
parentNode = node.getParentNode();
parentNode.removeNode();
}
}catch (Exception e){e.printStackTrac();}
I get error msg.
DOMException: DOM008 Not found
I tried to clone the node and then get the parentNode.
But the parent node is empty.
Anyone has any idea please let me know
Regards
tom
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/