From: Job van Ommen [mailto:jobvanommen@gmail.com]
Sent: 20 November 2008 11:42
To: xml-dev@lists.xml.org
Subject: [xml-dev] Removing nodes but leaving the tree intactHello Everyone,
I have a automatically generated xml tree like this:
<root>
<someobject/>
<someotherobject/>
<somecategory>
<somename>
<somecategory>
<someothername>
<someobject/>
<someotherobject/>
</someothername>
</somecategory>
<someobject/>
<someotherobject/>
</some name>
</some category>
</root>I generate a lot of these files, always containing nested <somecategory> elements.
Is there a clean way to use xsl to remove the <somecategory> elements and return the xml intact, just without the <somecategory> elements?
Kind regards.