Saxy.encode-exclamation-mark

You're seeing just the function encode-exclamation-mark, go back to Saxy module for more information.
Link to this function

encode!(root, prolog \\ nil)

View Source

Specs

encode!(
  root :: Saxy.XML.element(),
  prolog :: Saxy.Prolog.t() | Keyword.t() | nil
) :: String.t()

Encodes a simple form XML element into string.

This function encodes an element in simple form format and a prolog to an XML document.

Examples

iex> import Saxy.XML
iex> root = element(:foo, [{"foo", "bar"}], "bar")
iex> prolog = [version: "1.0"]
iex> Saxy.encode!(root, prolog)
"<?xml version=\"1.0\"?><foo foo=\"bar\">bar</foo>"
iex> prolog = [version: "1.0", encoding: "UTF-8"]
iex> Saxy.encode!(root, prolog)
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><foo foo=\"bar\">bar</foo>"