When using dom4j objects in Eclipse, it is sometimes hard to determine what the contents of a particular Document or Element are:
Step into code that uses an Element, Document, etcjava.io.StringWriter sw = new java.io.StringWriter(); org.dom4j.io.OutputFormat format = org.dom4j.io.OutputFormat.createPrettyPrint(); org.dom4j.io.XMLWriter writer = new org.dom4j.io.XMLWriter( sw, format ); writer.write(this); return sw.toString();