I would like to create/delete pubsub nodes in ejabberd by making calls to ejabberd module mod_pubsub using rpc calls to ejabberd node.
Can anyone tell me if this is a valid approach and show me an example of code? I would like to avoid sending xml stanzas from another ejabberd module.