1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-29 15:32:06 +01: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() { public XmlStringBuilder toXML() {
XmlStringBuilder xml = new XmlStringBuilder(); XmlStringBuilder xml = new XmlStringBuilder();
xml.openElement(ELEMENT); xml.openElement(ELEMENT);
xml.rightAngleBracket().append(condition.toString()).xmlnsAttribute(NAMESPACE).closeEmptyElement(); xml.halfOpenElement(condition.toString()).xmlnsAttribute(NAMESPACE).closeEmptyElement();
addDescriptiveTextsAndExtensions(xml); addDescriptiveTextsAndExtensions(xml);
xml.closeElement(ELEMENT); xml.closeElement(ELEMENT);
return xml; return xml;