Hi, I want to retrieve the uniqe paths to elements having text in the 'body' in an XML document. But not exactly.=)
Let me give you an example: <root> <product> <id>12</id> <name>steve<name> <additionalinfo>blabla</additionalinfo> <additionalinfo>etcetc</additionalinfo> <product> <product <id>13</id> <name>steve2<name> <additionalinfo>blabla2</additionalinfo> <additionalinfo>etcetc2</additionalinfo> </product> ...etc..more products </root> I have code for picking up path to each element containing text (paths stored in a Set to keep them unique), but I can't pickup elements sharing the same name (like additonalinfo above). In this case I want the id, name, additionalinfo(1), additionalinfo(2) paths in my Set. If another product has 3 additionalinfo elements, I want: id, name, and 3 additionalinfo element paths in my Set. Is this possible with dom4j ? I've tested with getUniquePath() on the Elements with methods TreeWalk and parseElement, but not found the exact solution as yet. Any help much appreciated! ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user