How can create this IQ using new Smack 4.1 API
<query xmlns=\"jabber:iq:privacy\"><list name=\"default\"><item action=\"allow\" order=\"1\"><presence-out/></item></list></query>
I was using the below code in asmack
IQ iq = new IQ(){ public String getChildElementXML() { return "<query xmlns=\"jabber:iq:privacy\"><list name=\"default\"><item action=\"allow\" order=\"1\"><presence-out/></item></list></query>"; } };
But I am facing difficulty in implementing this in Smack 4.1,
Any help would be appreciated.