<data> <person> <address>235 Somewhere</address> </person> <policy> <location> <address>123 Park Place</address> <location-name>Jones Place</location-name> </location> </policy> </data>
The actual data is more complex than this, but basically even though they are in different places, the address element is the same everywhere it occurs, so I have XPATH statements defining this like:
/data/person/address
and
/data/*/*/address
Since I have an XPATH statement that will match both address elements (can I compare this in dom4j using wildcards?), I will keep the address elements, but delete the <location-name> element since it is not in my list of XPATH statements.
Hopefully this makes sense. Any help would be appreciated.
Ray Grieselhuber
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user