> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apinizer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cleaning SOAP Message Content and Manipulating

> You can clean SOAP message content and add new fields using XSLT. You can simplify existing message content and add new fields such as arg0, arg1, arg2.

## Sample Input Value

```xml theme={null}
<?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>
```

## XSLT Transformation Code

```xml theme={null}
<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>
```

## Sample Output Value

```xml theme={null}
<?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>
```
