powered by Jive Software

How to send below code in smack

How to send below xml data by using smack

<query xmlns='http://jabber.org/protocol/disco#items’/>

Thanks in advance

Nikhil dhiman

To discover items for a given JID use the ServiceDiscoveryManager

ServiceDiscoveryManager serviceDiscoveryManager = ServiceDiscoveryManager.getInstanceFor(connection);
DiscoverItems discoverItems = serviceDiscoveryManager.discoverItems("adsf@adfac.com");

regards,

Henning