<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
I'm using ejabberd v2.1.2 and I would create a pubsub tree like this :<br>
<small>(root) --&gt; toto --&gt; titi --&gt; info (leaf)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \-&gt; ticket (leaf)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \-&gt; tutu --&gt; info (leaf)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \-&gt; ticket (leaf)</small><br>
<br>
My ejabberd pubsub config is :<br>
<small>&nbsp;{mod_pubsub,&nbsp;&nbsp; [ % requires mod_caps<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; {access_createnode, pubsub_createnode},<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; {ignore_pep_from_offline, true},<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; {last_item_cache, false},<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; {plugins, ["flat", "hometree", "pep"]}<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;]},</small><br>
<br>
How can I create a collection node?<br>
<br>
1 - When I send a xml request like :<br>
<small>&lt;iq type="set" to="pubsub.localhost" id="create1"&gt;<br>
&nbsp; &lt;pubsub xmlns=<a class="moz-txt-link-rfc2396E" href="http://jabber.org/protocol/pubsub">"http://jabber.org/protocol/pubsub"</a>&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;create node="toto"/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;configure/&gt;<br>
&nbsp; &lt;/pubsub&gt;<br>
&lt;/iq&gt;</small><br>
Ejabberd create a leaf named toto.<br>
<br>
2 - When I send a xml request like :<br>
<small>&lt;iq type="set" to="pubsub.localhost" id="create1"&gt;<br>
&nbsp; &lt;pubsub xmlns=<a class="moz-txt-link-rfc2396E" href="http://jabber.org/protocol/pubsub">"http://jabber.org/protocol/pubsub"</a>&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;create node="toto/titi"/&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;configure/&gt;<br>
&nbsp; &lt;/pubsub&gt;<br>
&lt;/iq&gt;</small><br>
Ejabberd create a leaf named toto/titi.<br>
<br>
3 - When I send a xml request like :<br>
<small>&lt;iq type="set" to="pubsub.localhost" id="create1"&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;pubsub xmlns=<a class="moz-txt-link-rfc2396E" href="http://jabber.org/protocol/pubsub">"http://jabber.org/protocol/pubsub"</a>&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;create node="toto"/&gt;</small><small></small><span
 class="pln"></span><span class="tag"><br>
<small>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;configure&gt;</small></span><small><span class="pln"><br>
</span><span class="tag">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;x</span><span class="pln"> </span><span
 class="atn">xmlns</span><span class="pun">=</span><span class="atv">'jabber:x:data'</span><span
 class="pln"> </span><span class="atn">type</span><span class="pun">=</span><span
 class="atv">'submit'</span><span class="tag">&gt;</span><span
 class="pln"><br>
</span><span class="tag">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &lt;field</span><span
 class="pln"> </span><span class="atn">var</span><span class="pun">=</span><span
 class="atv">'FORM_TYPE'</span><span class="pln"> </span><span
 class="atn">type</span><span class="pun">=</span><span class="atv">'hidden'</span><span
 class="tag">&gt;</span><span class="pln"></span><span class="tag">&lt;value&gt;</span><span
 class="pln"><a class="moz-txt-link-freetext" href="http://jabber.org/protocol/pubsub#node_config">http://jabber.org/protocol/pubsub#node_config</a></span><span
 class="tag">&lt;/value&gt;</span><span class="pln"></span><span
 class="tag">&lt;/field&gt;</span><span class="pln"><br>
</span><span class="tag">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;field</span><span
 class="pln"> </span><span class="atn">var</span><span class="pun">=</span><span
 class="atv">'pubsub#node_type'</span><span class="tag">&gt;&lt;value&gt;</span><span
 class="pln">collection</span><span class="tag">&lt;/value&gt;&lt;/field&gt;</span><span
 class="pln"><br>
</span><span class="tag">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/x&gt;</span><span class="pln"><br>
</span><span class="tag">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;/configure&gt;</span><span
 class="pln"></span><br>
&nbsp;&nbsp;&nbsp; &lt;/pubsub&gt;</small><small><br>
&lt;/iq&gt;</small><br>
Ejabberd create a leaf named toto.<br>
<br>
Could you please help me?
<br>
<br>
Br,
<br>
Guillaume Ludmann
<br>
</body>
</html>