The listener behaviour to attach to the parser to receive callbacks when the elements are encountered and processed.
Summary
Callbacks
Called for every parsing event.
Functions
Generates a listener with no-op handlers for every event.
Types
@type attributes() :: XmlBuilder.Element.attrs()
@type branch() :: XmlBuilder.Element.content()
@type element() :: XmlBuilder.Element.name()
@type leaf() :: XmlBuilder.Element.content()
@type parse_mode() :: :idle | :finished | :raw | :skip | :comment | {:comment, binary()} | :magnet | :md | {:outer, :md} | {:linefeed, non_neg_integer()} | {:nested, element(), non_neg_integer()} | {:inner, :raw} | {:inner, element(), non_neg_integer()}
@type trace() :: branch()
Callbacks
Functions
Generates a listener with no-op handlers for every event.
Options
:emoji-- the marker used by the default debug logging. Default:"📑".:debug-- whentrue, the generatedhandle_start/1,handle_end/1andhandle_tag/2log at:debuglevel. Default:false.
A listener should be silent unless it is explicitly asked to be: a library that logs on every parsed element is unusable in production.