diff options
author | Anthony Ramine <[email protected]> | 2010-12-07 19:30:36 +0100 |
---|---|---|
committer | Lars Thorsen <[email protected]> | 2011-11-11 11:58:42 +0100 |
commit | 5d3feb918409696bf375ccf1ab6e67f027e3aa6e (patch) | |
tree | 82f2c6dab1e246409f693f5db6ccc6a30582de9b /lib/xmerl | |
parent | 8a0e62c1e8c01dbecf70fb4317f00ad50e9f6051 (diff) | |
download | otp-5d3feb918409696bf375ccf1ab6e67f027e3aa6e.tar.gz otp-5d3feb918409696bf375ccf1ab6e67f027e3aa6e.tar.bz2 otp-5d3feb918409696bf375ccf1ab6e67f027e3aa6e.zip |
Set `vsn` field in `#xmlDecl` record
Diffstat (limited to 'lib/xmerl')
-rw-r--r-- | lib/xmerl/src/xmerl_scan.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/xmerl/src/xmerl_scan.erl b/lib/xmerl/src/xmerl_scan.erl index 6855097089..ad6fa7d2b9 100644 --- a/lib/xmerl/src/xmerl_scan.erl +++ b/lib/xmerl/src/xmerl_scan.erl @@ -789,7 +789,8 @@ scan_xml_decl(T, S) -> Attr = #xmlAttribute{name = version, parents = [{xml, _XMLPos = 1}], value = Vsn}, - scan_xml_decl(T4, S4, #xmlDecl{attributes = [Attr]}). + scan_xml_decl(T4, S4, #xmlDecl{vsn = Vsn, + attributes = [Attr]}). scan_xml_decl([], S=#xmerl_scanner{continuation_fun = F}, Decl) -> ?dbg("cont()...~n", []), |