> ## 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.

# Converting SOAP1.1 XML to SOAP1.2 XML

> You can convert XML in SOAP 1.1 format to SOAP 1.2 format using XSLT. You can convert XML with SOAP1.1 namespace to XML with SOAP1.2 namespace.

The following XSLT code converts XML with SOAP1.1 namespace to XML with SOAP1.2 namespace.

### XSLT Code

```xml theme={null}
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
    <xsl:output method="xml" indent="no"/>
    <xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>
    <xsl:template match="soap11:Envelope">
        <soap:Envelope>
            <xsl:apply-templates select="node()"/>
        </soap:Envelope>
    </xsl:template>
    <xsl:template match="soap11:Header">
        <soap:Header>
            <xsl:apply-templates select="node()"/>
        </soap:Header>
    </xsl:template>
    <xsl:template match="soap11:Body">
        <soap:Body>
            <xsl:apply-templates select="node()"/>
        </soap:Body>
    </xsl:template>
</xsl:stylesheet>
```
