Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 481 Bytes

2016-08-04-elixlir-解析erlang-record.md

File metadata and controls

15 lines (9 loc) · 481 Bytes

See question for answer. (This is at the top of the unanswered list)

Otherwise I found the answer during my investigations in a blog post on elixir-lang.org

For the most commonly used records:

defrecord :xmlElement, Record.extract(:xmlElement, from_lib: "xmerl/include/xmerl.hrl")
defrecord :xmlText, Record.extract(:xmlText, from_lib: "xmerl/include/xmerl.hrl")

stackoverflow ->

http://stackoverflow.com/questions/17345939/elixir-and-erlang-records-pattern-matching