[JDEV] Namespace usage on server
Franck Mangin
FMangin at facetime.com
Wed Oct 3 16:42:41 CDT 2001
> -----Original Message-----
> From: Peter Saint-Andre [mailto:stpeter at jabber.org]
> Sent: Wednesday, October 03, 2001 6:56 AM
> To: 'jdev at jabber.org'
> Subject: Re: [JDEV] Namespace usage on server
>
>
> > <stream:stream to='jabber'
> > xmlns:stream='http://etherx.jabber.org/streams'
> > xmlns='jabber:client'>
> > <iq id='A3' type='get'>
>
> vs.
>
> > <stream:stream to='jabber'
> > xmlns:stream='http://etherx.jabber.org/streams'>
> > <iq xmlns='jabber:client' id='A3' type='get'>
>
> The xmlns 'jabber:client' refers to the stream, not just any
> old element
> (e.g., your <iq/> element) within the stream, thus the error.
> All streams
> must be identified as jabber:client, jabber:component, or
> jabber:server.
From what I understand of XML namespaces, jabber:client defines a
default namespace, which has no effect on the stream:stream element
since the "stream" prefix explicitly puts it in the stream namespace.
Franck Mangin
More information about the JDev
mailing list