Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
surjith #1
Member since Apr 2006 · 7 posts · Location: Pondicherry
Group memberships: Members
Show profile · Link to this post
Subject: Doubt regarding Xdataform in AgsXmpp dll
I would like to know in what ways the xdata form will work. It is include in the mainform? I shall mention the code listing:
  ' check for xData Message
        Dim e As Element = msg.SelectSingleElement(GetType(Data))
        If Not (e Is Nothing) Then
             Dim xdata As Data = e '

                If xdata.Type = XDataFormType.form Then
                   Dim fXData As New frmXData(xdata)
                    fXData.Text = "xData Form from " + msg.From.ToString()
                    fXData.Show()
               End If
        Else
            If Not Util.ChatForms.ContainsKey(msg.From.Bare) Then
                Dim rn As RosterNode = rosterControl.GetRosterItem(msg.From)
                Dim nick As String = msg.From.Bare
                If Not (rn Is Nothing) Then
                    nick = rn.Text
                End If
                Dim f As New frmChat(msg.From, XmppCon, nick)
                f.Show()
                f.IncomingMessage(msg)
            End If
        End If
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello surjith,

I attached a screenshot of a x-data from. X-data is used in XMPP in many places.
X-data is a generic data description format that can be used for dynamic forms generation and data modelling in a variety of circumstances. The x-data control in agsXMPP.ui is parsing the xml and builds the user interface for you. It is also capable of building the x-data response.

some use cases of XData:
  • search forms
  • muc chat room configuration
  • in band registration
  • questionnaires

see also the XData JEP-0004

Alex
The author has attached one file to this post:
xdataform.png 19.9 kBytes
You have no permission to open this file.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS