This function creates a stanza object from a string. The string must contain a single complete stanza. Multiple stanzas will lead to memory leak and this is not handled in the patch.
Check reference counting in xmpp_stanza_add_child() amd xmpp_stanza_add_child_ex().