Quantcast
Viewing all articles
Browse latest Browse all 12000

Parsing XML from packet

Hello everyone I'm trying to parse packet from the following function

 

 

publicvoid interceptPacket(Packet packet, Session session, boolean incoming, boolean processed)

            throws PacketRejectedException {

        if (!processed && incoming) {

            Log.info("INTERPRETED: " + packet.toXML());

        }

    }

 

I am trying to examine the xmlns of the packet, but it seems like packet doesn't have getters such as getAttributes(), or getXMLNS(). Is there anyway that I can parse the packet better?

 

Thank you.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 12000

Trending Articles