[JDEV] Net::Jabber

Tiago Almeida tiago.almeida at co.clix.pt
Wed Dec 4 05:21:09 CST 2002


Hi all,
i'm using the perl module Net::Jabber to create some BOTs for my jabber
server,and i'm having some difficulties retrieving some xml namespaces.

I'm using the Net::Jabber:X, thats has some methods, but only for
default namespaces.
i want to retrieve data in namespaces created by me.

i.e.

i have this xml data
<message  to=user1 at someserver.whatever from=user2 >
    <x xmlns=mic_alert>
       <alert type=remove name=alert name />
    </x>
</message>


or this data

<message to=user1 at someserver.whatever from=user2 >
  <x xmlns=mic_alert>
  <alert name=alert name alerttime=alerttime1 in utc
eventtime=eventtime1 in utc alldayevent="yes/no"
category="alert/invitation/anything _else" message=mention the alert
message><categoryinfo>some
 string</categoryinfo></alert>
 </x>
</message>

now how can i retrieve the data in <x></x> namespace?

Best regards,
tsa

-- 
Tiago Almeida <tiago.almeida at co.clix.pt>
Clix




More information about the JDev mailing list