Having looked at it again: I believe your problem is that you're trying to mutate the DOM while we're still iterating over it. Xalan _requires_ that the source document be stable while the XPath query is in progress.
If so, the simplest fix would be to retrieve all the nodes, store them in a vector, _then_ delete them after you're done using the XPath. ______________________________________ Joe Kesselman / IBM Research
