This on it's own doesn't work at the moment: elem.setQName(QName.get( elem.getName(), ns));
So you'll first have to remove the previous namespace: elem.remove(elem.getNamespace()); elem.setQName(QName.get(elem.getName(), ns)); Regards, Edwin -- http://www.edankert.com/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user