# `Twilio.TwiML`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/twiml.ex#L1)

Base module for TwiML XML generation.

TwiML (Twilio Markup Language) is the set of XML instructions
Twilio uses to handle incoming calls and messages.

Use `Twilio.TwiML.VoiceResponse` or `Twilio.TwiML.MessagingResponse`
to build TwiML documents.

# `element`

```elixir
@type element() :: {String.t(), map(), [element() | String.t()]}
```

# `t`

```elixir
@type t() :: %Twilio.TwiML{elements: [element()]}
```

# `add_element`

```elixir
@spec add_element(t(), String.t(), map(), [element() | String.t()]) :: t()
```

Add an element to the TwiML document.

# `to_xml`

```elixir
@spec to_xml(t(), String.t()) :: String.t()
```

Render TwiML to an XML string.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
