Created
October 30, 2014 05:39
-
-
Save asonge/d5368be1f70a63bd8d20 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Xmerl do | |
import Record | |
defrecord(:xmlText, extract(:xmlText, from_lib: "xmerl/include/xmerl.hrl")) | |
end | |
require Xmerl | |
test = IO.inspect Xmerl.xmlText(value: "Test") | |
IO.inspect Xmerl.xmlText(test, :value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment