On Sonntag, 2. April 2017 10:52:38 CEST Steve Kille wrote:
> > Please do not do that. <item xmlns='http://jabber.org/protocol/pubsub'/>
> > (with the xmlns inherited from the <pubsub/> element) and <item
> > xmlns='urn:xmpp:mix:
> > 0'/> are entirely different elements. The former is part of the PubSub
> > protocol as specified in XEP-0060, the latter is not. Using the latter,
> > while being arguably shorter, breaks compatibility with existing pubsub
> > implementations. The specified way to put a payload into a pubsub <item/>
> > is to make it a child element of that item.
> 
> [Steve Kille]
> Ah  - I learn more about XML Namespaces the whole time!!
> 
> I believe this needs fixing up in several places in MIX.  Will check
> 
> For here, how about:
> 
> 
> <items node='urn:xmpp:mix:nodes:participants'>
>       <item id='123456#[email protected]' >
>               <nick xmlns='urn:xmpp:mix:0'>thirdwitch</nick>
>       </item>
> </items>

This has the downside that it is not possible for future amendments to 
trivially extend the item (adding multiple things to a single <item/> is at 
least unconventional). The existing way with the <participant nick='…'/> 
element seems most reasonable to me.

kind regards,
Jonas

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: [email protected]
_______________________________________________

Reply via email to