View Source exml_nif (exml v3.2.0)

Link to this section Summary

Link to this section Types

-type parser() :: term().
-type stream_element() :: exml:element() | exml_stream:start() | exml_stream:stop().

Link to this section Functions

Link to this function

create(MaxChildSize, InfiniteStream)

View Source
-spec create(MaxChildSize :: non_neg_integer(), InfiniteStream :: boolean()) ->
          {ok, parser()} | {error, Reason :: any()}.
-spec escape_cdata(Bin :: iodata()) -> binary().
-spec parse(Bin :: binary() | [binary()]) -> {ok, exml:element()} | {error, Reason :: any()}.
-spec parse_next(parser(), Data :: binary() | [binary()]) ->
              {ok, stream_element() | undefined, non_neg_integer()} | {error, Reason :: any()}.
-spec reset_parser(parser()) -> any().
-spec to_binary(Elem :: exml:element(), pretty | not_pretty) -> binary().