Hi experts,
I am trying to remove some node, for example:
<Zoo location="LA" >
<Animal name = "dog" />
<Animal name = "cat" />
<Extention name = "Hello" />
<Extention name = "Hi" />
</Zoo>
--------------------------
----
I want the output to be:
<Zoo location="LA" >
<Animal name = "dog" />
<Animal name = "cat" />
<Extention name = "Hello" />
</Zoo>
--------------------------
----
I tried to used the following, but it didn't work ...
<xsl:template match="node()">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates select="node()[not(name() = 'Hi')] " />
</xsl:copy>
</xsl:template>
--------------------------
---
Can anyone please give me some helps? Thanks!
Start Free Trial