Software /
code /
prosody
Comparison
util/xml.lua @ 6669:7da8b6bc0966
util.xml: Remove unused parameter (thanks, luacheck)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 06 May 2015 19:39:28 +0100 |
parent | 6663:d3023dd07cb6 |
child | 6777:5de6b93d0190 |
comparison
equal
deleted
inserted
replaced
6668:f6f39c2f1b1f | 6669:7da8b6bc0966 |
---|---|
37 stanza:tag(name, attr); | 37 stanza:tag(name, attr); |
38 end | 38 end |
39 function handler:CharacterData(data) | 39 function handler:CharacterData(data) |
40 stanza:text(data); | 40 stanza:text(data); |
41 end | 41 end |
42 function handler:EndElement(tagname) | 42 function handler:EndElement() |
43 stanza:up(); | 43 stanza:up(); |
44 end | 44 end |
45 local parser = lxp.new(handler, "\1"); | 45 local parser = lxp.new(handler, "\1"); |
46 local ok, err, line, col = parser:parse(xml); | 46 local ok, err, line, col = parser:parse(xml); |
47 if ok then ok, err, line, col = parser:parse(); end | 47 if ok then ok, err, line, col = parser:parse(); end |