Dnia 2009-01-14, śro o godzinie 10:20 +0100, Richard Smith pisze:
> What I'm pondering is while the following is valid XML, is it valid
> under XMPP?
> 
> <message
>  to="..."
>  from="..."
>  xmlns:magicNS="urn:blah:etc"
>  magicNS:attr1="..." >...
> 
> >From what I understand in RFC3920 this would be ok, however mildly
> confusing
> etc.
> 
> Am I right in thinking that while this is valid, it's generally not
> good for
> client understanding? Not that I care much in this context anyway
> since I'm
> using XMPP as a transport protocol for something non-IM based, but
> it's
> always good to know :)

It is valid.

Historically (in pre-XMPP jabber network) most clients did not support
xmlns. This is why there are some strange restrictions applied on XMPP
streams.
But todays XMPP requires full xml namespace support, and IIRC GTalk uses
them extensively, so sooner or later all servers and clients would
support xmlns correctly.


-- 


_______________________________________________
JDev mailing list
FAQ: http://www.jabber.org/discussion-lists/jdev-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________

Reply via email to