Amit wrote:
Quote:
Originally Posted by
Suppose I am having this input xml:<Event><Test></Test><Result
Value="true"><Request xmlns='http://tempuri.org/AtoB.xsd' RequestID=""
MessageID="" UniqueID="000172581"/><Application></Application></
Result></Event>
>
and I want this xml output:<Event><Test></Test><Request xmlns='http://
tempuri.org/AtoB.xsd' RequestID="" MessageID="" UniqueID="000172581"/
Quote:
Originally Posted by
><Application></Application></Event>
|
i.e removing of <Resulttag in the output xml string
|
Here is an XSLT stylesheet
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="Result">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/