On Wednesday 16 June 2004 19:54, Mike Skells wrote:
> this bugin the dev newsgroup

newsgroup?

> if(n.getName().equalsIgnoreCase("div"))
> {
>       n.detach(); //better than n.getParent().remove(n) as getParent()
> may be null
> }

But this one throws a NullPointerException (if Element) or just doesn't work 
respectively (if Node)...or did I misunderstand you?


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to