From ca1852f6e0280ec687acddd84c2535fd92a3d8bf Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 5 Dec 2017 20:39:16 +0100 Subject: [PATCH] Fix AffiliationsExtension.toXml() Fixes SMACK-789. --- .../org/jivesoftware/smackx/pubsub/AffiliationsExtension.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/AffiliationsExtension.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/AffiliationsExtension.java index 9e4ae26be..dd19877b9 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/AffiliationsExtension.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/AffiliationsExtension.java @@ -63,7 +63,7 @@ public class AffiliationsExtension extends NodeExtension { // Can't use XmlStringBuilder(this), because we don't want the namespace to be included XmlStringBuilder xml = new XmlStringBuilder(); - xml.openElement(getElementName()); + xml.halfOpenElement(getElementName()); xml.optAttribute("node", node); xml.rightAngleBracket(); xml.append(items);