Howto get data from PacketExtensions?

this is what I get from a buddy and I want to

<presence from=“test@imexpress/Home” to=“test2@imexpress/Gajim”>

<show>dnd</show>

<status>late n8 worker</status>

<c xmlns=“http://jabber.org/protocol/caps” node=“http://pidgin.im/caps” ver=“2.3.1” ext=“mood moodn nick nickn tune tunen avatarmeta avatardata avatar”/>

</presence>

when I try to catch it with a Packetlistener and this code:

logger.debug(packet.toString());

logger.debug(packet.toXML());

for (PacketExtension pe : packet.getExtensions())

{

logger.debug( pe.toXML() );

}

then there is only this as output:

<presence id=“79” to=“test@imexpress/Smack” from=“test2@imexpress/Gajim”>

<priority>50</priority>

<x xmlns=“vcard-temp:x:update”>

<photo></photo>

</x>

<c xmlns=“http://jabber.org/protocol/caps”></c>

</presence>

Can anybody give me some tipps? Coz in the EnhancedDebugger is it fully shown, but not with my packetlistener.