# nats\_array\_to\_xml

*Article Topics:* [*Smarty*](https://docs.toomuchmedia.com/getting-started/common-topics/smarty)*,* [*Customization*](https://docs.toomuchmedia.com/getting-started/common-topics/customization)

## Parameters

(*Required parameters in **bold**)*

| Parameter | Description                          | Possible Values                | Default Value | Example              |
| --------- | ------------------------------------ | ------------------------------ | ------------- | -------------------- |
| **data**  | **The array to convert to XML**      | **Any valid Smarty array**     | **None.**     | **data="my\_array"** |
| name      | Name of the variable to store output | Any valid Smarty variable name | nats\_data    | name="my\_name"      |

## Output

XML data in the {nats\_data} variable or whatever variable name you specified.
