saxy icon indicating copy to clipboard operation
saxy copied to clipboard

Supports a callback function instead of a handler module

Open sntran opened this issue 4 years ago • 0 comments

Let the user pass a function to Saxy.parse_* instead of callback module for simple use cases.

For example:

Saxy.parse_string(xml, fn(event, acc) -> 
  IO.inspect(event)
  acc
end, [])

sntran avatar Sep 23 '21 14:09 sntran