core/xmlhandlers.lua

branch
s2s
changeset 146
3826ca244eb6
parent 145
fbb3a4ff9cf1
child 148
4c0dcd245d34
equal deleted inserted replaced
145:fbb3a4ff9cf1 146:3826ca244eb6
33 if stanza and #chardata > 0 then 33 if stanza and #chardata > 0 then
34 -- We have some character data in the buffer 34 -- We have some character data in the buffer
35 stanza:text(t_concat(chardata)); 35 stanza:text(t_concat(chardata));
36 chardata = {}; 36 chardata = {};
37 end 37 end
38 log("debug", "Start element: %s", tostring(name));
39 curr_ns,name = name:match("^(.+):([%w%-]+)$"); 38 curr_ns,name = name:match("^(.+):([%w%-]+)$");
40 attr.xmlns = curr_ns; 39 attr.xmlns = curr_ns;
41 40
42 if not stanza then --if we are not currently inside a stanza 41 if not stanza then --if we are not currently inside a stanza
43 if session.notopen then 42 if session.notopen then

mercurial