I am using Smack for communication with Cisco Finesse. Until now I used Smack version 3.4.1 without issues for a long time. Now I had to upgrade to Smack version 4.3.5 and I am facing the following issue:
From the XMPP server I receive XML packets. These packets arrive in the Smack framework at
PacketParserUtils.parseContentDepthWithRoundtrip(XmlPullParser, int, boolean)
Here the following code
if (event == XmlPullParser.TEXT) {
text = StringUtils.escapeForXmlText(text);
}
(because event == XmlPullParser.TEXT) escapes all ‘<’ in my XML and when the packet of type Message arrives at my StanzaListener the XML looks like this:
<Update>
<data>
<user>
<dialogs>/finesse/api/User/xxxxx/Dialogs</dialogs>
<extension>xxxxx</extension>
<firstName>xxxxx</firstName>
<lastName>xxxxx</lastName>
…
<uri>/finesse/api/User/xxxxx</uri>
</user>
</data>
<event>PUT</event>
<requestId></requestId>
<source>/finesse/api/User/xxxxx</source>
</Update>
Is there a way to prevent PacketParserUtils.parseContentDepthWithRoundtrip(XmlPullParser, int, boolean) from calling StringUtils.escapeForXmlText(text)?
Thanks,
Zoltan