From 6021f8a8ced49ee6235a9f95f38edc6683a39e80 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 19 Aug 2014 12:42:23 +0200 Subject: [PATCH] Fix Bytestream.getChildElementXML returning invalid XML --- .../smackx/bytestreams/socks5/packet/Bytestream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/packet/Bytestream.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/packet/Bytestream.java index 20004b0e0..7d22d4b7d 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/packet/Bytestream.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/packet/Bytestream.java @@ -221,7 +221,7 @@ public class Bytestream extends IQ { @Override public XmlStringBuilder getChildElementXML() { XmlStringBuilder xml = new XmlStringBuilder(); - xml.openElement(IQ.QUERY_ELEMENT); + xml.halfOpenElement(IQ.QUERY_ELEMENT); xml.xmlnsAttribute(NAMESPACE); switch(getType()) {