[ejabberd] xml-not-well-formed error

George Catalin Serbanut cgsmcmlxxv at gmail.com
Mon Aug 15 14:00:32 MSD 2011

If not, did you use echo_client.erl from exmpp examples? If so, your guards
should be in function echo_packet or its equivalent.

If you use a generic server, you should have a function which sends the
messages via exmpp. Before calling exmpp_session:send_packet(MySession,
NewPacket), set your guards.

This is the limit of the general discussion about this subject. More details
where to set your guards I cannot give but only if I see your code or at
least to know how it looks like.


On Mon, Aug 15, 2011 at 11:36 AM, George Catalin Serbanut <
cgsmcmlxxv at gmail.com> wrote:

> Does your bot have a gen_server with a supervisor and send function?
> On Mon, Aug 15, 2011 at 11:30 AM, Alexander Kuleshov <
> kuleshovmail at gmail.com> wrote:
>> >>I suppose you used the bot (or something similar) from the example
>> >>
>> http://www.process-one.net/en/blogs/article/scalable_xmpp_bots_with_erlang_and_exmpp_part_iii
>> >>correct? Then, you have the supervisor of that gen_server implemented as
>> external service and not the supervisor from exmpp. >>Also, the guards
>> should be implemented before you create the packet to be sent by exmpp.
>> No i have simple bot, it's not in OTP style. Just simple bot.
>> _______________________________________________
>> ejabberd mailing list
>> ejabberd at jabber.ru
>> http://lists.jabber.ru/mailman/listinfo/ejabberd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20110815/f5ec6c98/attachment.html>

More information about the ejabberd mailing list