This line; https://github.com/bjc/prosody/blob/f343cf5ba093f3f2f4d883b247e405f9fc29cbe7/util/xml.lua#L67should probably be;local parser = lxp.new(handler, ns_separator);