<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jabber X schrieb:
<blockquote
cite="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">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>
<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>
Ulrich<br>
</body>
</html>