from this code, if you want to remove node InqRs, apply the following xsl:
<xsl:output method="xml"/>
<xsl:template match="node()">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="PAN">
<LoginID>
<xsl:copy-of select="."/>
</LoginID>
</xsl:template>
you will get something like this
<InqRs>
<LoginID>
<PAN> 4506445 </PAN>
</LoginID>
<RqUID>93</RqUID>
<Dt>90703195116</Dt>
<CaptureDate>704</CaptureDate>
<ApprovalCode>934999</ApprovalCode>
<StatusCode>000</StatusCode>
<List>
<Count>9</Count>
<AddDataFlag>N</AddDataFlag>
<Use>C</Use>
<DetRec>
<ID>007237048637</ID>
<Type1>62</Type1>
<Qual/>
<ID>0010</ID>
<Status>1</Status>
<InqFlag>Y</InqFlag>
</DetRec>
</List>
<InqRs>
I hope this helps you
source
share