You could try the code below to see whether dom4j is the offending party or whether it happens before it's converted to a dom4j document?
TransformerFactory transformerFactory = TransformerFactory.newInstance(); DOMSource source = new DOMSource(m_myroot.getOwnerDocument()); Transformer transformer = transformerFactory.newTransformer(); ByteArrayOutputStream stream = new ByteArrayOutputStream(); StreamResult result = new StreamResult(stream); transformer.transform(source, result); System.out.println(stream.toString()); Regards, Edwin -- http://www.edankert.com/ Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user