[JDEV] Silly questions about jabber server

Jens Alfke jens at mac.com
Fri Aug 17 11:24:51 CDT 2001


On Friday, August 17, 2001, at 01:00 AM, Edmund Lam wrote:

> 1) What is the purpose of the URL "http://etherx.jabber.org/streams"
> and why is it hardcoded into the source?

It is the URI that uniquely identifies the XML namespace used by the 
core Jabber protocol, declared in the outermost <stream> element of any 
Jabber session. Since it's a core piece of the protocol definition, it 
is OK to hardcode it. It doesn't actually matter what the URI contains 
or whether it's a valid URL that points to any real web page; it just 
needs to be unique, and using a domain name owned by the entity that 
defines the protocol is a well-established way of doing that.

(If this explanation confuses you, you might want to read up on XML 
namespaces.)

--Jens




More information about the JDev mailing list