When you do not set the mergeAdjacentText property, the text nodes in the tree are not merged together. When performing an xpath search using the text() method, this only returns the text of the first text-node.
As a workaround for this, please set the reader.setMergeAdjacentText() property to true. Regards, Edwin http://www.edankert.com/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user