I am having a bit of trouble understanding the correct library to deal with xml in a ejabberd 13 community edition module.
For instance, I would like to simply use ejabberd as a router, scoop the contents of a message from ejabberd and queue it to rabbitMQ to be parsed external to ejabberd.
This is the test module I have written trying to accomplish these goals:
-module(mod_xml_test).
-behavior(gen_server).
-behavior(gen_mod).
%%% API: gen_mod
-export([start_link/2, start/2, stop/1]).
%%% API: gen_server