1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-06-12 06:34:52 +02:00

Switch right bracket to left bracket on condition start tag.

StreamError toXML should output <..><cond>..</cond>,
not <..>>cond>..</cond>.
This commit is contained in:
Jae Jang 2014-12-10 10:56:24 -05:00 committed by Florian Schmaus
parent b3b42f3a9b
commit d5c7a2cad3

View file

@ -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;