Subject: How To Return User Search Results
Hello,
I am able to search for a user and the search result is being returned as xml
, like this :
Now how do i filter the Results? will this work :
Looking Forward To Your Reply
I am able to search for a user and the search result is being returned as xml

- SEND: <iq id="search1" to="search.nakibfatih" type="set" from="search.nakibfatih" xmlns="jabber:client">
- <query xmlns="jabber:iq:search">
- <first>Hamid</first>
- </query>
- </iq>
- RECV: <iq type="result" id="search1" from="search.nakibfatih" to="admin@nakibfatih/MatriX" xmlns="jabber:client">
- <query xmlns="jabber:iq:search">
- <item jid="hamid@nakibfatih">
- <first>Hamid</first>
- <email>something@example.com</email>
- </item>
- </query>
- </iq>
Now how do i filter the Results? will this work :
- private void RequestRoster()
- {
- xmppClient.IqFilter.SendIq(riq, RosterResponse);
- }
- private void RosterResponse(object sender, IqEventArgs e)
- {
- var iq = e.Iq;
- if (iq.Type == IqType.result)
- {
- // process result here
- }
- else if (iq.Type == IqType.error)
- {
- // process errors here
- }
- }
Looking Forward To Your Reply