---
schema_version: "1"
id: b541fad4fd2ba1bcb8447fc42f131416222393fd10345ca1f03cb32b95524654
title: Amazon SNS 4.8 XML and Maven Support
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/amazon-sns-connector/latest/amazon-sns-connector-xml-maven.md
canonical_url: https://docs.mulesoft.com/amazon-sns-connector/latest/amazon-sns-connector-xml-maven
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 0ae8a4250e5e06daf1d93cdcc7235055902027e93d593a83b8b8d65e42d144d7
description: MuleSoft Documentation Site
release: "4.8"
latest: true
---
---
product: Amazon SNS Connector
version: 4.8
is-latest-version: true
---

# Amazon SNS 4.8 XML and Maven Support

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

If you manually code a Mule application in XML (either from the Studio XML editor or a text editor),
you must perform the following actions to access the connector:

1.  Add the namespace for the connector to your XML flow.

2.  Add dependency information to your Apache Maven `pom.xml` file.

In the Studio visual editor, when you drag a connector from the palette to the canvas, Studio
automatically populates the XML code with the connector namespace and schema location.

## Add a Namespace for the Connector

Paste the following code inside the `<mule>` tag of the header of your configuration XML:

```xml
http://www.mulesoft.org/schema/mule/sns
http://www.mulesoft.org/schema/mule/sns/current/mule-sns.xsd
```

This example shows how the namespace statements are placed in the `<mule>` XML block:

```xml
<?xml version="1.0"?>

<mule xmlns:http="http://www.mulesoft.org/schema/mule/http"
   xmlns:sns="http://www.mulesoft.org/schema/mule/sns"
   xmlns="http://www.mulesoft.org/schema/mule/core"
   xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core
   http://www.mulesoft.org/schema/mule/sns
   http://www.mulesoft.org/schema/mule/sns/current/mule-sns.xsd
   http://www.mulesoft.org/schema/mule/http
   http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">

<!-- Put your flows and configuration elements here -->

</mule>
```

## Add a POM File Dependency

The Maven `pom.xml` file generated by Anypoint Studio contains dependencies for a Mule app. When you
code a Mule app manually, include this XML snippet in your `pom.xml` file to enable access to this
connector.

```xml
<dependency>
  <groupId>com.mulesoft.connectors</groupId>
  <artifactId>mule-amazon-sns-connector</artifactId>
  <version>x.x.x</version>
  <classifier>mule-plugin</classifier>
</dependency>
```

Replace `x.x.x` with the version that corresponds to the connector you are using.

To obtain the most up-to-date `pom.xml` file information, access the connector in
[Anypoint Exchange](https://www.mulesoft.com/exchange/) and click **Dependency Snippets**.

## Next Step

After completing your namespace and `pom.xml` file, you can try out
[Examples](https://docs.mulesoft.com/amazon-sns-connector/latest/amazon-sns-connector-examples).

## See Also

- [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)

- [Salesforce Help](https://help.salesforce.com)
