Örnek Giriş Değeri

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
  <AddResponse xmlns="http://tempuri.org/">
  <AddResult>4</AddResult>
  </AddResponse></soap:Body>
</soap:Envelope>
CODE

XSLT Dönüşüm Kodu

<xsl:stylesheet version="1.0" 
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"                
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

 	<xsl:template match="@*|node()">
    	<xsl:copy>
	      <xsl:apply-templates select="@*|node()"/>
    	</xsl:copy>
  	</xsl:template>
  
    <xsl:template match="/soap:Envelope/soap:Body*[1]">
        <xsl:copy>
            <arg0>
                <xsl:copy-of select="//*[local-name() = 'AddResult']/text()" />
            </arg0>                                                
            <arg1>kullaniciAdi</arg1>
            <arg2>sifreDegeri</arg2>
            <arg3>arg3 degeri</arg3>
        </xsl:copy>
    </xsl:template>
 </xsl:stylesheet>
CODE

Örnek Çıkış Değeri

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <AddResponse xmlns="http://tempuri.org/">
         <arg0 xmlns="">4</arg0>
         <arg1 xmlns="">kullaniciAdi</arg1>
         <arg2 xmlns="">sifreDegeri</arg2>
         <arg3 xmlns="">arg3 degeri</arg3>
      </AddResponse>
   </soap:Body>
</soap:Envelope>
CODE