public Element toXML()
    {
        final Namespace ns = Namespace.get("db", "jabber:server:dialback");
        final Document outbound = DocumentHelper.createDocument();
        final Element root = outbound.addElement("root");
        root.add(ns);
        final Element result = root.addElement(QName.get("result", ns));
        result.addAttribute("from", from);
        result.addAttribute("to", to);
        result.addAttribute("type", "error");
        result.add(error.getElement());

        return result;
    }
Representation of an error result of the Server Dialback authentication mechanism.

@author Guus der Kinderen, guus@goodbytes.nl
xmppserver/src/main/java/org/jivesoftware/openfire/server/ServerDialbackErrorException.java