Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Avatar
efoxy #1
Member since Jan 2008 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: when and how to use the agsXMPP.Xml.Dom.ElementList
hi Alex!
there is not the TagName and Namespace Properties in the agsXMPP.Xml.Dom.ElementList class. i dont know how to use it ,and what type task is it use for,could you give me a sample? thanx~~ :)

efoxy
Avatar
Alex #2
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello efoxy,

The ElementList is a collection of Elements. This class is for internal usage.
e.g: the SelectElements Functions returns a ElementList.

Let me know if this helps you, or if you have more questions about the ElementList.

Alex
Alexander Gnauck
AG-Software
Avatar
efoxy #3
Member since Jan 2008 · 6 posts
Group memberships: Members
Show profile · Link to this post
thank you Alex,I want to built a component to manage the persons and group,and i want to add a iq just like "jabber:iq:roster" to return the persons list of a group

like this:
[SEND]:
<iq type="get" id="jcl_4" to="person.domain.com" from="efoxy@domain.com">
<query xmlns="domain.com:group:persons">
<group_id>1</group_id>
</query>
</iq>

[RECV]:
<iq type="result" id="jcl_4" from="person.domain.com" to="efoxy@domain.com">
<query xmlns="domain.com:group:persons">
<group_id>1</group_id>
<item jid="person_1@domain.com" name="111"/>
<item jid="person_2@domain.com" name="222"/>
<item jid="person_3@domain.com" name="333"/>
<item jid="person_4@domain.com" name="444"/>
</query>
</iq>


i dont know how to return the person list, i need your help. thank you!!
Avatar
Alex #4
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
hi efoxy,

you can use the SelectElements member to retrieve your item nodes by tagname.
But I would suggest to create objects for your custom packets.
Here is a tutorial for creating custom packets/objects with agsXMPP:
http://www.ag-software.net/download/xmpp/creating_own_pack…

Alex
Alexander Gnauck
AG-Software
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 SDK Support RSS