diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/iot/provisioning/element/IoTIsFriendResponse.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/iot/provisioning/element/IoTIsFriendResponse.java index 6892b7030..042b69055 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/iot/provisioning/element/IoTIsFriendResponse.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/iot/provisioning/element/IoTIsFriendResponse.java @@ -1,6 +1,6 @@ /** * - * Copyright © 2016 Florian Schmaus + * Copyright © 2016-2017 Florian Schmaus * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,7 @@ import org.jxmpp.jid.BareJid; public class IoTIsFriendResponse extends IQ { - public static final String ELEMENT = "isFriend"; + public static final String ELEMENT = "isFriendResponse"; public static final String NAMESPACE = Constants.IOT_PROVISIONING_NAMESPACE; private final BareJid jid; @@ -46,6 +46,7 @@ public class IoTIsFriendResponse extends IQ { protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder xml) { xml.attribute("jid", jid); xml.attribute("result", result); + xml.setEmptyElement(); return xml; }