Quantcast
Viewing all articles
Browse latest Browse all 4

Answer by vinayakchalse for xsl: Copy the entire xml except a parent node but keep its child node

This XSL should do the needful.

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="xml" indent="yes"/><xsl:template match="*"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy></xsl:template>   <xsl:template match="InqRs/LoginID"><xsl:copy-of select="@*|node()" />    </xsl:template></xsl:stylesheet>

Viewing all articles
Browse latest Browse all 4

Trending Articles