Removing XML document nodes

wlock->remove();

remove() removes the XML document node that the writer lock is positioned to, and repositions the writer lock to its parent node. If the writer lock is positioned on the document's root node, the document becomes empty, and the writer lock has no XML document node position.

Note

When an XPath nodeset gets created by a writer lock, calling remove() automatically turns all xpath objects that were created by the writer lock, and which still exist, into empty nodesets (their count() methods will all return zero).