[jdev] xep-0078 stream statement is not well-formed xml - missing closing tag
Peter Saint-Andre
stpeter at stpeter.im
Fri Jun 19 20:05:54 CDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 6/19/09 3:46 PM, Mason, Matt wrote:
> Greetings –
>
> Looking at XEP-0078
>
> http://xmpp.org/extensions/xep-0078.html#usecases-auth
>
> In the example for the user authentication, the client opens a stream to
> the server.
>
> <stream:stream to='shakespeare.lit'
> xmlns='jabber:client'
> xmlns:stream='http://etherx.jabber.org/streams'>
>
>
> However, the stream does not contain a closing tag (like />) for the XML
> statement. That is required for the xml to be well-formed.
>
> Am I missing something?
Yes. You need to read RFC 3920. :)
In essence, the closing </stream:stream> element is sent when the
session ends. That's why it's streaming XML...
> Also, I could not find a specification for the Stream ID, and what the
> rules for it’s form should be. Any help on that area would be great.
See RFC 3920 here, too.
Peter
- --
Peter Saint-Andre
https://stpeter.im/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAko8NfIACgkQNL8k5A2w/vztYQCcCm+iGbH8MOUriDL58yTT9g9n
wXQAni5gVqe12ea3QIphuLmXaV75CaQe
=K/ED
-----END PGP SIGNATURE-----
More information about the JDev
mailing list