From d5c7a2cad3c294e0e7fdb6acabb9da97527dc4d7 Mon Sep 17 00:00:00 2001 From: Jae Jang Date: Wed, 10 Dec 2014 10:56:24 -0500 Subject: [PATCH] Switch right bracket to left bracket on condition start tag. StreamError toXML should output <..>.., not <..>>cond>... --- .../main/java/org/jivesoftware/smack/packet/StreamError.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/StreamError.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/StreamError.java index 631926d2f..1ac8f65c9 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/packet/StreamError.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/StreamError.java @@ -142,7 +142,7 @@ public class StreamError extends AbstractError implements PlainStreamElement { public XmlStringBuilder toXML() { XmlStringBuilder xml = new XmlStringBuilder(); xml.openElement(ELEMENT); - xml.rightAngleBracket().append(condition.toString()).xmlnsAttribute(NAMESPACE).closeEmptyElement(); + xml.halfOpenElement(condition.toString()).xmlnsAttribute(NAMESPACE).closeEmptyElement(); addDescriptiveTextsAndExtensions(xml); xml.closeElement(ELEMENT); return xml;