Because a invite is sent inside a message stanza you get an OnMessage event. In this event you have to check if it is a normal message or a invite or something else.
i don't understand your question.
From which event, or which xml you want to get a Jid?
And which Jid you you want?
The Jid of the person which invites you, or the Jid of the chatroom to which you get the invite?
If InvokeRequired Then
BeginInvoke(CType(AddressOf m_XMPPConnection_OnMessage, agsXMPP.XmppClientConnection.MessageHandler), New Object() {sender, msg})
Return
End If
End Sub
in OnReadXml enevt get xml
Private Sub m_XMPPConnection_OnReadXml(ByVal sender As Object, ByVal xml As String) Handles m_XMPPConnection.OnReadXml
<message xmlns="jabber:client" from="parwej_5ip@conference.java" to="me@java">
<x xmlns="http://jabber.org./protocol/muc#user">
<invite from="parwej@java">
<reason>Please join me in a conference. </reason>
</invite>
</x>
<x xmlns="jabber:x:conference" jid="parwej_5i9@conference.java" />
</message>
End Sub
This post was edited on 2006-09-14, 13:44 by softyboy.