Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Removing an element but keeping its child nodes with XSL Removing an element but keeping its child nodes with XSLTo: NULL Date: 11/17/2009 8:30:00 AM
Hi everyone,
How do I go about transforming the XML document below into result.xml? Basically what I'm aiming for is to remove one of the element but keeping the children. So I would like to remove the <Location> element but keep the <City> element (the <City> element being the child element of <Location>). Any pointers would be greatly appreciated. Thanks!
<User>
<TITLE>Mrs</TITLE>
<INITIALS>D</INITIALS>
<FIRST_NAME>Doris</FIRST_NAME>
<LAST_NAME>Smith</LAST_NAME>
<Location>
<City>London</City>
</Location>
</User>
** How do I transform this to**
<User>
<TITLE>Mrs</TITLE>
<INITIALS>D</INITIALS>
<FIRST_NAME>Doris</FIRST_NAME>
<LAST_NAME>Smith</LAST_NAME>
<City>London</City>
</User>
EggHeadCafe - Software Developer Portal of Choice
.NET GDI+ Icons - Drawing At Runtime For System Tray
http://www.eggheadcafe.com/tutorials/aspnet/c003531d-3152-471f-bfcc-daf22f84c65b/net-gdi-icons--drawing.aspx
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
