How to get raw packets from smack


I am using smack 3.2.I am sending a raw xml query to gtalk server which in turns respond something that I think is not a xmpp standard that is why packet filer to toXML method can’t process that packet fully.

When I looked in debugger, there I am getting packet as I want it to be, so I want to know how to get that raw packet in my program, i read several discussion but none answered it fully.