It didnt seem to make a difference.<br>
The problem seems to be the server is closing the connection when
trying to send the second piece of xml data. It responds fine to the
first<br><br><div><span class="gmail_quote">On 11/20/05, <b class="gmail_sendername">Ulrich Staudinger</b> <<a href="mailto:us@activestocks.de">us@activestocks.de</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Jabber X schrieb:
<div><span class="e" id="q_107af7b23f7c3c80_1"><blockquote cite="http://mid382daab20511201209m25ff3325y711dabbff1552f3e@mail.gmail.com" type="cite">The data i am trying to send is embedded in the strings in
the example<br>
<br>
<div><span class="gmail_quote">On 11/20/05, <b class="gmail_sendername">Ralph Meijer</b> <<a href="mailto:jabber.org@ralphm.ik.nu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jabber.org@ralphm.ik.nu
</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On
Sun, Nov 20, 2005 at 08:01:40PM +0000, Jabber X wrote:<br>
> I have started coding with Jabber but am having problems early on
with what i
<br>
> suspect in bad formatting in the Xml.<br>
> I send the initial xml to make the stream connection and then try
to register<br>
> an account but the server closes the connection. When trying this
on a telnet<br>
> client it does give me a stream error which says disconnected.
Occasionally<br>
> upon trying other xml such as a login stream it might say invalid
xml.<br>
> I put together this quick example below to illustrate the problem.
<br>
> Any help would be greatly appreciated<br>
<br>
An actual trace of the data you are trying to send that gives the errors<br>
would help...<br>
<br>
--<br>
Groetjes,<br>
<br>
ralphm<br>
</blockquote>
</div>
<br>
</blockquote></span></div>
<br>
I think you need to a) send a newline after the <?...?> xml
preamble and b) insert a space in the xml preamble before the final ?
( "<?xml version='1.0' ?>\n" )<br>
<br>
Cheers,<br><span class="sg">
Ulrich<br>
</span><br clear="all"></blockquote></div><br>