93 cb_error(session, "invalid-top-level-element"); |
93 cb_error(session, "invalid-top-level-element"); |
94 end |
94 end |
95 |
95 |
96 stanza = st.stanza(name, attr); |
96 stanza = st.stanza(name, attr); |
97 else -- we are inside a stanza, so add a tag |
97 else -- we are inside a stanza, so add a tag |
98 attr.xmlns = nil; |
|
99 if curr_ns ~= stream_default_ns then |
|
100 attr.xmlns = curr_ns; |
|
101 end |
|
102 stanza:tag(name, attr); |
98 stanza:tag(name, attr); |
103 end |
99 end |
104 end |
100 end |
105 function xml_handlers:CharacterData(data) |
101 function xml_handlers:CharacterData(data) |
106 if stanza then |
102 if stanza then |