Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
Huntsman #1
Member since Apr 2016 · 42 posts
Group memberships: Members
Show profile · Link to this post
Subject: Reading IQ value
Hey Alex. I need a lil help from you.
please reply asap.

Thank you.

  1. <iq type="result" id="60" from=".@conference.server.com" to="user@server.com/resource">
  2. <query xmlns="http://jabber.org/protocol/disco#info">
  3. <identity category="conference" name="myroomname" type="text" />
  4. <feature var="http://jabber.org/protocol/muc" />
  5. <feature var="muc_public" />
  6. <feature var="muc_open" />
  7. <feature var="muc_unmoderated" />
  8. <feature var="muc_nonanonymous" />
  9. <feature var="muc_unsecured" />
  10. <feature var="muc_persistent" />
  11. <feature var="urn:xmpp:mam:0" />
  12. <feature var="urn:xmpp:mam:1" />
  13. <feature var="http://jabber.org/protocol/disco#info" />
  14. <x xmlns="jabber:x:data" type="result">
  15. <field var="FORM_TYPE" type="hidden">
  16. <value>http://jabber.org/protocol/muc#roominfo</value>
  17. </field>
  18. <field var="muc#roominfo_description" label="Description">
  19. <value>.</value>
  20. </field>
  21. <field var="muc#roominfo_subject" label="Subject">
  22. <value />
  23. </field>
  24. <field var="muc#roominfo_occupants" label="Number of occupants">
  25. <value>0</value>
  26. </field>
  27. <field var="x-muc#roominfo_creationdate" label="Creation date">
  28. <value>2017-10-04T14:35:07.052Z</value>
  29. </field>
  30. </x>
  31. </query>
  32. </iq>


how to read all feature var values and field var values..
This post was edited on 2017-10-28, 14:57 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
There is the GetFeatures method on the DiscoInfo object, which returns zou an array of DiscoFeature.

DiscoFeature object has the Var property you are looking for.
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