hi all ( Bonjour ;) ),
I'm working on c2s module, the c2s.c file most of time. By using NAD_AVAL I've got this :
Wed Jun 2 14:53:32 2004 [notice] Valeur de NAD ANAME 1: [EMAIL PROTECTED]/Gabbertypechatbodytest12<message xmlns='jabber:client' type='chat' to='[EMAIL PROTECTED]/Gabber'><body>test12</body></message>/[EMAIL PROTECTED]/[EMAIL PROTECTED]/Gabberc2s8sm3ecb1a2fa6ab72469a235af11aecd9fe7cf9fcdcbodytest11<route xmlns='http://jabberd.jabberstudio.org/ns/component/1.0' Seq:='db93e84c6f209da33c7c1c56645fe4c0:135' from='jabber.gicm.net' to='c2s'><message xmlns:sm='http://jabberd.jabberstudio.org/ns/session/1.0' xmlns='jabber:client' sm:sm='3ecb1a2fa6ab72469a235af11aecd9fe7cf9fcdc' sm:c2s='8' from='[EMAIL PROTECTED]/Gabber' type='chat' to='[EMAIL PROTECTED]/Gabber'><body>test11</body></message></route><message xmlns='jabber:client' from='[EMAIL PROTECTED]/Gabber' type='chat' to='[EMAIL PROTECTED]/Gabber'><body>test11</body></message>$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
My question is :
Is there a function that would allow me to extract just this sentence : to='[EMAIL PROTECTED]/Gabber' ??² I've tried nad_find_attr and nad_find_elem but unsuccessfully :
attr = nad_find_attr(nad, 0, -1, "to", NULL); retuns 0 and allow me to call NAD_AVAL(nad,attr) which returns the previous text.
elem_tmp = nad_find_elem(nad, 0, -1, "message", 1); returns -1, failed so.
any idea or suggestion ?
-- Remy Harel - [EMAIL PROTECTED] G.I.C.M - Distributed Systems & IT Linux Registered User #224740
_______________________________________________ jdev mailing list [EMAIL PROTECTED] https://jabberstudio.org/mailman/listinfo/jdev