On Mon Mar 23 14:13:34 2009, Egon Willighagen wrote:
So, my questions is, is the one of the libraries we use wrong, or,
alternatively, can IQ stanza never overwrite the default namespace?

Looking forward to your opinions on how to interpret this part of the
XMPP specification,

<iq>
        <query xmlns='foo:bar'/>
</iq>

Is legal (albeit the namespace URI isn't really, and I'm skipping attributes, but you know what I mean) - it's also commonly used.

However, the "jabber:server" or "jabber:client" namespaces MUST be the default namespace of the stream, and MUST NOT be used with a prefix.

<foo:iq xmlns:foo="jabber:client"/> is illegal, as are various other forms otherwise legal and semantically equivalent.

Dave.
--
Dave Cridland - mailto:[email protected] - xmpp:[email protected]
 - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
 - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade

Reply via email to