I’'m trying to create java classes that represent Jingle xml.
The IQ-class is used as a base and we set the jingle-element as child element. I’'d like to be able to add multiple content-elements as specified in JEP-0166. However, I can only add one packetextension to a child element, which would result in adding only one content element.
Is their any way in which I can add more than just one packetextension?
We’'d like to create packets that look roughly like this
<iq>
<jingle>
<content>
<describtion>
<transport>
</content>
<content>
<describtion>
<transport>
</content>
…
</jingle>
</iq>
originally we though we would create an org.xmpp.packet.IQ and then add a self created JinglePacketExtension to the packet, to which we’'d futher add n[/i] times a self created JingleContentExtension.
However, you have to define a child element, otherwise you can’'t add an packet extenstion. So we set the jingle element as child extension, but now the problem arises then you can only add one packet extension to a Packet.childElement . That would mean we can only add at most one ContentPacketExtension to the Jinglepacket. We would like to be able to add more content elements to the packet. I hope I made the problem more clear.
BTW, if you’'re looking to do Jingle client-side then I would recommend looking at the “soc” branch of Smack. Quite a bit of Jingle work has been done there.
Ok, 1 month left and I?m behind schedule. However, I think I can finish the Jingle implementation this week, finally. And I have to start to work with Andreas in order to have all this stuff in the Objective-C side?