[Standards-JIG] XEP0191 - Blocking - Node Names

Peter Saint-Andre stpeter at jabber.org
Mon Oct 16 20:54:13 UTC 2006


Chris Mullins wrote:
> I don’t see a need for two node names “block” and “blocklist” they could
> be the same “blocks”. They’re already separated by get/set IQ type.
> 
>  
> 
> Both of these packets:
> 
> <iq type='set' id='block1'>
> 
>   <block xmlns='http://jabber.org/protocol/blocking'>
> 
>   </block>
> 
> </iq>
> 
>  
> 
> <iq type='get' id='blocklist1'>
> 
>   <blocklist xmlns='http://jabber.org/protocol/blocking'/>
> 
> </iq>
> 
>  
> 
>  
> 
> Could look like:
> 
> <iq type='set' id='block1'>
> 
>   <blocks xmlns='http://jabber.org/protocol/blocking'>
> 
> </iq>
> 
>  
> 
> <iq type='get' id='block1'>
> 
>   <blocks xmlns='http://jabber.org/protocol/blocking'>
> 
> </iq>
> 
>  
> 
> I like the symmetry of this more, and it’s more consistant.

But the <block/> element must contain at least one <item/> element
according to the schema, whereas the <blocklist/> element may be empty
(if you request the list and no items have been blocked).

Peter

-- 
Peter Saint-Andre
Jabber Software Foundation
http://www.jabber.org/people/stpeter.shtml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7358 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.jabber.org/pipermail/standards/attachments/20061016/9715f365/attachment.bin>


More information about the Standards mailing list