I have an xml
<ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
<InstrumentationKey>xxx-yuyu</InstrumentationKey>
</ApplicationInsights>
I have an xslt
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="InstrumentationKey">
<InstrumentationKey>BBB</InstrumentationKey>
</xsl:template>
</xsl:transform>
This just will not replace InstrumentationKey. It only works when I remove xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings" from the ApplicationInsights.
Any idea where I'm going wrong?