Hi Jorg,
I believe this is caused by a bug in your code. However it is probably a bug that we should have caught and raised an error on. In particular:
Jorg Heymans wrote:
document.getDocumentElement().replaceChild( documentNode, nodeList.item(0));
I am reasonably sure that the Document Element is not the parent of nodeList.item(0). In which case the above call will slightly corrupt our DOM. I've added additional checks so an error will be raised in this condition in the future.
You probably want:
Element elt = (Element)nodeList.item(0); elt.getParentNode().replaceChild(documentNode, elt);
Also why are you dragging in XPath just to do getElementById?
String xpath = "//[EMAIL PROTECTED]'" + feature + "']"; final NodeList nodeList = org.apache.xpath.XPathAPI .selectNodeList(document, xpath);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]