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 |