AnsweredAssumed Answered

Distorted xml in StanzaListener

Question asked by soban on Sep 18, 2017



I am implementing the client side code for ejabberd MucSub extension (Multi-User Chat Subscriptions | ejabberd Docs ).

When I send the IQ for subscriptions list, I am getting correct response IQ in debug logs but in StanzaListener the same response is delivered as broken xml.

Following is response IQ I am getting in debug log and in StanzaListener.


In debug logs:

<iq xml:lang='en' to='' from='' type='result' id='3nUeL-57'>

<subscriptions xmlns='urn:xmpp:mucsub:0'>

<subscription jid=''/>

<subscription jid=''/>




In StanzaListener

<iq to='' from='' id='3nUeL-57' type='result'>

<subscriptions xmlns='urn:xmpp:mucsub:0'&lt;subscriptions xmlns=&apos;urn:xmpp:mucsub:0&apos;&gt;&lt;subscription jid=&apos;;/&gt;&lt;subscription jid=&apos;;/&gt;&lt;/subscriptions&gt;</subscriptions></iq>


Can anyone help me out with this? I am using smack 4.2.0.

Thanks in advance.