[JDEV] JabberCOM .OnMessage 'Tag' Parameter help

Peter Millard me at pgmillard.com
Mon Jun 23 11:38:31 CDT 2003


David Banes wrote:
> I am working with JabberCOM and the IJabberSession event OnMessage. I'm
> having trouble 'getting at' the Tag parameter as an IXMLTag tag, I need
> to be able to get a TagIterator from it so I can see what tags are in
> the xml.

What development environment are you using? Basically, you need to get the
IXMLTag interface from the Tag parameter, and then use something like
XMLTag.Query('foo') which would return an IXMLTagIterator to all of the foo
child elements. Then you would use my_itr.Next and my_itr.HasNext to iterate
over all of those tags.

Check the Documentation here:

http://jabbercom.sourceforge.net/jabbercom.html (for JabberCOM stuff)

http://jabbercom.sourceforge.net/xmlcom.html (for handling XML Tags, etc..)

pgm.




More information about the JDev mailing list