[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] flattening an xml hierarchy


Subject: [xsl] flattening an xml hierarchy
From: Tim <timlhunt@xxxxxxxxxxxxxx>
Date: Thu, 08 Jan 2009 11:12:12 -0500

Hi,
I'd like to remove some elements from an xml hierachy using xslt:

Original xml example:
<Dontwant1>
   <dontwant2>foo</dontwant2>
   <x3>
       <x4>stuff</x4>
       <y5>more stuff</y5>
   </x3>
</Dontwant1>

Like to have transform output:
<x3>
  <x4>stuff</x4>
   <y5>more stuff</y5>
</x3>

Thanks for your insghts.

Tim


Current Thread
Keywords
xml