Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
lingx825 #1
Member since Nov 2007 · 23 posts
Group memberships: Members
Show profile · Link to this post
Subject: How to create complicate custom packet type?
If I have a xml stream like this:

<iq from=... to=... type=...>
     <query xmlns=.....>
         <tag1>.....</tag1>
         <tag2>
              <tag2.1>....</tag2.1>
              <tag2.2>
                    <tag2.2.1>.....</tag2.2.1>
                    <tag2.2.2>.....</tag2.2.2>
              </tag2.2>
         </tag2>
     </query>
</iq>
maybe more complicate strutcture,consider the child tag as a class,How to create the C# class for IQ and Element,
What it may look like?what if the complicate structure embed in <message>?
Thanks for any help.
Avatar
Alex #2
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

this is no problem. We deal with such packets everywhere in the agsXMPP code.
You should study the custom packets document and some classes in the agsXMPP source code.
I think the Vcard classes in the agsXMPP.protocol.iq.vcard namespace are a very good example for you.

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