Saxy.encode_to_iodata-exclamation-mark
You're seeing just the function
encode_to_iodata-exclamation-mark
, go back to Saxy module for more information.
Specs
encode_to_iodata!( root :: Saxy.XML.element(), prolog :: Saxy.Prolog.t() | Keyword.t() | nil ) :: iodata()
Encodes a simple form element into IO data.
Same as encode!/2
but this encodes the document into IO data.
Examples
iex> import Saxy.XML
iex> root = element(:foo, [{"foo", "bar"}], "bar")
iex> prolog = [version: "1.0"]
iex> Saxy.encode_to_iodata!(root, prolog)
[
['<?xml', [32, 'version', 61, 34, "1.0", 34], [], [], '?>'],
[60, "foo", 32, "foo", 61, 34, "bar", 34],
62,
["bar"],
[60, 47, "foo", 62]
]