← Prev in month ← Prev in thread

Removing nodes but leaving the tree intact

From
Job van Ommen <>
To
Date
2008-11-20T11:41:55Z
ID
<>
Thread
Removing nodes but leaving the tree intact

Hello 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.

← Prev in month ← Prev in thread