How to deserialize xml string to org.jivesoftware.smack.packet.Message object?

hi,

org.jivesoftware.smack.packet.Message object has a toXML() method can serialize Message to string, it’s great to integrated with other framework.

but, does is there a way to deserialize xml string convert to Message object?

Thank you!