powered by Jive Software

XEP-0060 pubsub CollectionNode upon child node creation

To be according XEP-0060, the element “items” must contain attribute “node”, because it is required.

<xs:element name=‘items’>
<xs:element ref=‘item’ minOccurs=‘0’ maxOccurs=‘unbounded’/>
<xs:element ref=‘retract’ minOccurs=‘0’ maxOccurs=‘unbounded’/>
<xs:attribute name=‘node’ type=‘xs:string’ use=‘required’/>

Otherwise OF produces invalid message upon child pubsub node creation.
<message from=“pubsub.” to="ivan@" id=“CfFFAYrv”>
<event xmlns=“http://jabber.org/protocol/pubsub#event”>
<item id="#device/ivan2"/>

Pull request created: