powered by Jive Software

XEP-0060 pubsub CollectionNode upon child node creation

xep-0060

#1

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

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

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

Pull request created: