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: How to read Nick value
hello alex sir,

the presence xml is

<presence from="julliet@nimbuzz.com/resource" to="romeo@nimbuzz.com/resource">
<priority>6</priority>
<c xmlns="http://jabber.org/protocol/caps" node="nimbuzz:caps" ver="0.1" ext="nimbuzz-mobile groupchat-v1 ctype-v1 nimbuzz-ack groupchat-v2 voice-v1 jingle-v1 jingle-v2 chatroom-v1 notifiable-off" />
<show>away</show>
<nick xmlns="http://jabber.org/protocol/nick">?ALONE</nick></presence>

can you please tell me how to read the value between <nick xmlns="http://jabber.org/protocol/nick"> and </nick> .
 i want to get the nick value (ALONE) .

Thank you.
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
  1. using agsXMPP.protocol.extensions.nickname;
  2.  
  3. var nickname = pres.SelectSingleElement<Nickname>().Value;
Avatar
Huntsman #3
Member since Apr 2016 · 42 posts
Group memberships: Members
Show profile · Link to this post
its works :)
thank you, Sir.
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