Hi! When trying to remove all <script> nodes from a html DOM a NullPointerException is thrown:
Document doc = reader.read(new StringReader(string)); Node article = doc.selectSingleNode("/html/body/table[3]/tbody/tr[5]/td | /html/body/table[3]/tr[5]/td".toUpperCase()); article.accept(new VisitorSupport() { public void visit(Element node) { if (node.getName().equalsIgnoreCase("script")) node.detach(); } }); Why? Regards, Timo ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user