RustyXML.Encoder (RustyXML v0.2.3)

Copy Markdown View Source

Encodes XML element trees to strings or iodata.

This is the Saxy-compatible encoding module used by RustyXML.encode!/2 and encode_to_iodata/2.

Summary

Functions

Encode an XML element tree to a string. Raises on errors.

Encode an XML element tree to iodata.

Functions

encode!(content, opts \\ [])

@spec encode!(
  term(),
  keyword()
) :: String.t()

Encode an XML element tree to a string. Raises on errors.

encode_to_iodata(content, opts \\ [])

@spec encode_to_iodata(
  term(),
  keyword()
) :: iodata()

Encode an XML element tree to iodata.