powered by Jive Software

Smack - Xml to Packet

Hi EveryOne!

I have a String xml message ( presence message in this case) . I want convert this String in a Presence Object.

Is this possible?

Thanks in advance.

This is done in the Smack testcases quite frequently. You can look at the parseBasicItem test case as an example.

This does use a testing utility class that is not part of the smack or smackx jars, but you can easily duplicate that if you need to.