1 # Pubsub: Create and delete
7 // admin@localhost is assumed to have node creation privileges
14 <iq type="set" to="pubsub.localhost" id='create1'>
15 <pubsub xmlns="http://jabber.org/protocol/pubsub">
16 <create node="princely_musings"/>
21 <iq type="result" id='create1'/>
24 <iq type="set" to="pubsub.localhost" id='create2'>
25 <pubsub xmlns="http://jabber.org/protocol/pubsub">
26 <create node="princely_musings"/>
31 <iq type="error" id='create2'>
33 <conflict xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
38 <iq type="set" to="pubsub.localhost" id='delete1'>
39 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
40 <delete node="princely_musings"/>
45 <iq type="result" id='delete1'/>
48 <iq type="set" to="pubsub.localhost" id='delete2'>
49 <pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
50 <delete node="princely_musings"/>
55 <iq type="error" id='delete2'>
57 <item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>