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: Xml to Presence
Hello alex sir,

i have a xml. can you please tell me how can i make a presence in .NET using agsxmpp.dll

xml is

  1. <presence to="user@nimbuzz.com/resource" xml:lang="Do not well in the past, do not dream of the future, concentrate the mind on the present moment.">
  2. <c xmlns="http://jabber.org/protocol/caps" node="http://palringo.com/caps" ver="1.0" ext="nimbuzz-wap" hash="sha-1" />
  3. <show>away</show>
  4. <nick xmlns="http://jabber.org/protocol/nick">trim</nick>
  5. <status>.</status>
  6. <priority>75</priority>
  7. <x xmlns="j2j:history">
  8. <jid gateway="xmpp.mybase.name">izthunjm81o9slvw0y2ax57f3bcqk6gp</jid>
  9. </x>
  10. </presence>

i want to make a presence in .net using this xml..

thank you.
This post was edited on 2016-10-03, 12:55 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you use the presence class in agsXMPP.
This presence includes the Nickname and Caps extensions, both should be available in agsXMPP.

I have not seen this before:
  1. <jid gateway="xmpp.mybase.name">izthunjm81o9slvw0y2ax57f3bcqk6gp</jid>

but you can easily add this Xml on your own.

Alex
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