XML Declaration before opening stream tag

Hi,

when I tried to connect to an XMPP server with Smack, the server refused the connection since it expected an XML declaration before the opening of the stream element.

Is there a built-in way to change this behaviour in Smack (I didn’t find anything) and if not, where would I need to make this change in the Smack source?

Thanks in advance and best regards,

Patrick

Hmm, have a look at org.jivesoftware.smack.PacketWriter#openStream.

Which server do you use?