Parsing XML from packet

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

public void 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.