IQ packets .toString() method

I see packets like this:

Please enter your MSN Messenger account and password. Nickname is optional.

May be empty xmlns don’'t required ?

WBR, Alex.

<iq xmlns=’‘jabber:client’’ to=’‘zhuam@pager.hongye.com/IMX’’ from=’‘msn.pager.hongye.com’’ id=’‘Imx_25’’ type=’‘result’’>

<query xmlns=’‘jabber:iq:register’’>

Please enter your MSN Messenger account and password. Nickname is ptional

I mean whack creates empty xmlns attributes. I think it should create it.

change to

why did you say to create xmlns attributes for IQ packet , !

Sorry, I mean "I think it shouldN’'T create it. "

Are you actually seeing the xmlns attributes being sent over the wire, or just when you do a toString() on the Packet?

Regards,

Matt

It’'s result of toString() method. Is it different from sent over the wire ?

Alex,

Yeah, I think it might be different when writing over the wire. When it’‘s doing a toString(), it doesn’'t have the full context of the current namespace available, etc.

-Matt