Example Input Value

<?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 Conversion Code

<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>username</arg1>
            <arg2>password</arg2>
            <arg3>value of arg3</arg3>
        </xsl:copy>
    </xsl:template>
 </xsl:stylesheet>
CODE


Example Output Value

<?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="">username</arg1>
         <arg2 xmlns="">password</arg2>
         <arg3 xmlns="">value of arg3</arg3>
      </AddResponse>
   </soap:Body>
</soap:Envelope>
CODE