powered by Jive Software

Simple way to receive all PacketExtensions?

I’m looking for a quick way to get a string of the entire XML packet from the XMPP chat. We have several nested PacketExtensions, and they don’t come through without a PacketExtensionProvider. Is there any easy way to just receive the entire packet as it was sent? As it is, the debugger shows the extensions on the outbound client, but they have been stripped from the incoming packet (in the Smack debugger).

I just need all the XML in a String.

Thanks!

-Mike

Ok, I figured it out.

I implemented a PacketExtensionProvider and looped through the XMLParser results, buffering them up until the end tag. That buffer then contains everything I need.