Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Best Way To Strip XML Document of Unwanted Nodes Best Way To Strip XML Document of Unwanted NodesTo: NULL Date: 10/4/2005 4:02:00 PM I'm trying to strip an XML document of unwanted nodes such that in the example below I would keep all the parent nodes of a child node I wanted and for other parents which do not have the child requested they would be stripped. I understand I could use XSLT but I'm doing this in java and was wondering if there was a preferred approach out there. Before <a> <b> <c>fdfdsf</c> </b> <b> <x>dffsd</x> </b> <b> <x>dffsd</x> <c>fdfdsf</c> </b> </a> After requesting to keep child c <a> <b> <c>fdfdsf</c> </b> <b> <c>fdfdsf</c> </b> </a> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
