projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge 0.10->trunk
[prosody.git]
/
util
/
xml.lua
diff --git
a/util/xml.lua
b/util/xml.lua
index db446bc321e6e0193550ed559090d6f153a373d7..6dbed65d2f5b1c144890b17cec5511386a8643cd 100644
(file)
--- a/
util/xml.lua
+++ b/
util/xml.lua
@@
-2,7
+2,7
@@
local st = require "util.stanza";
local lxp = require "lxp";
local st = require "util.stanza";
local lxp = require "lxp";
-module("
template
")
+module("
xml
")
local parse_xml = (function()
local ns_prefixes = {
local parse_xml = (function()
local ns_prefixes = {
@@
-26,8
+26,8
@@
local parse_xml = (function()
attr[i] = nil;
local ns, nm = k:match(ns_pattern);
if nm ~= "" then
attr[i] = nil;
local ns, nm = k:match(ns_pattern);
if nm ~= "" then
- ns = ns_prefixes[ns];
- if ns then
+ ns = ns_prefixes[ns];
+ if ns then
attr[ns..":"..nm] = attr[k];
attr[k] = nil;
end
attr[ns..":"..nm] = attr[k];
attr[k] = nil;
end