<!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) --> toto --> titi --> info (leaf)<br>
| \-> ticket (leaf)<br>
\-> tutu --> info (leaf)<br>
\-> ticket (leaf)</small><br>
<br>
My ejabberd pubsub config is :<br>
<small> {mod_pubsub, [ % requires mod_caps<br>
{access_createnode, pubsub_createnode},<br>
{ignore_pep_from_offline, true},<br>
{last_item_cache, false},<br>
{plugins, ["flat", "hometree", "pep"]}<br>
]},</small><br>
<br>
How can I create a collection node?<br>
<br>
1 - When I send a xml request like :<br>
<small><iq type="set" to="pubsub.localhost" id="create1"><br>
<pubsub xmlns=<a class="moz-txt-link-rfc2396E" href="http://jabber.org/protocol/pubsub">"http://jabber.org/protocol/pubsub"</a>><br>
<create node="toto"/><br>
<configure/><br>
</pubsub><br>
</iq></small><br>
Ejabberd create a leaf named toto.<br>
<br>
2 - When I send a xml request like :<br>
<small><iq type="set" to="pubsub.localhost" id="create1"><br>
<pubsub xmlns=<a class="moz-txt-link-rfc2396E" href="http://jabber.org/protocol/pubsub">"http://jabber.org/protocol/pubsub"</a>><br>
<create node="toto/titi"/><br>
<configure/><br>
</pubsub><br>
</iq></small><br>
Ejabberd create a leaf named toto/titi.<br>
<br>
3 - When I send a xml request like :<br>
<small><iq type="set" to="pubsub.localhost" id="create1"><br>
<pubsub xmlns=<a class="moz-txt-link-rfc2396E" href="http://jabber.org/protocol/pubsub">"http://jabber.org/protocol/pubsub"</a>><br>
<create node="toto"/></small><small></small><span
class="pln"></span><span class="tag"><br>
<small> <configure></small></span><small><span class="pln"><br>
</span><span class="tag"> <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">></span><span
class="pln"><br>
</span><span class="tag"> <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">></span><span class="pln"></span><span class="tag"><value></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"></value></span><span class="pln"></span><span
class="tag"></field></span><span class="pln"><br>
</span><span class="tag"> <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">><value></span><span
class="pln">collection</span><span class="tag"></value></field></span><span
class="pln"><br>
</span><span class="tag"> </x></span><span class="pln"><br>
</span><span class="tag"> </configure></span><span
class="pln"></span><br>
</pubsub></small><small><br>
</iq></small><br>
Ejabberd create a leaf named toto.<br>
<br>
Could you please help me?
<br>
<br>
Br,
<br>
Guillaume Ludmann
<br>
</body>
</html>