title: create a pubsub node in xmpp
body: <p>I am trying create a node in ejabber using XMPP and BOSH Manager. But I want to know what values need to be passed in a create node stanza.</p>
  
  <p>Following is the format of create node stanza but i am not be able to create it so can anyone tell me what values need to be passed 
  in <code>&lt;formvalue&gt; &lt;tovalue&gt; &lt;nodevalue&gt;</code></p>
  
  <pre><code>&lt;iq type='set'
      from='&lt;fromvalue&gt;'
      to='&lt;tovalue&gt;'
      id='create1'&gt;
    &lt;pubsub xmlns='http://jabber.org/protocol/pubsub'&gt;
      &lt;create node='&lt;nodevalue&gt;'/&gt;
    &lt;/pubsub&gt;
  &lt;/iq&gt;
  </code></pre>
  
  <p>Note:
  I am using ejabbered and BOSH url is <code>http://example.com:5280/xmpp-http-bind</code>.</p>
  
  <p>i tried this and i am getting  <strong>feature-not-implemented error</strong></p>
  
  <pre><code>&lt;body rid='95507820' xmlns='http://jabber.org/protocol/httpbind' sid='5c4fbfe432babab58fe5e39367fc1704c06ddfd7'&gt;
     &lt;presence xmlns='jabber:client'&gt;
        &lt;priority&gt;-1&lt;/priority&gt;
     &lt;/presence&gt;
  &lt;iq to='example.com' type='set' xmlns='jabber:client' id='3742:sendIQ'&gt;
     &lt;pubsub xmlns='http://jabber.org/protocol/pubsub'&gt;
       &lt;create/&gt;
       &lt;configure/&gt;
    &lt;/pubsub&gt;
  &lt;/iq&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>i tried another way too and in that case i am getting <strong>creation failed with jid-malformed</strong></p>
  
  <pre><code>&lt;body rid='2037203608' xmlns='http://jabber.org/protocol/httpbind' sid='2a198251db476ef0490a4d3f591468b69edaf35b'&gt;
     &lt;presence xmlns='jabber:client'&gt;
       &lt;priority&gt;-1&lt;/priority&gt;
     &lt;/presence&gt;
  &lt;iq to='example.com' type='set' xmlns='jabber:client' id='7398:sendIQ'&gt;
    &lt;pubsub xmlns='http://jabber.org/protocol/pubsub'&gt;
      &lt;create node='draw'/&gt;
    &lt;/pubsub&gt;
   &lt;/iq&gt;
  </code></pre>
  
  <p></p>
  
  <p>i tried with <strong>filepath</strong> too but i am getting <strong>creation failed with forbidden</strong></p>
  
  <pre><code>&lt;body rid='358865391' xmlns='http://jabber.org/protocol/httpbind' sid='0f7cf72754f0fc3b0b04c8c0bb488e816380d741'&gt;
      &lt;presence xmlns='jabber:client'&gt;
          &lt;priority&gt;-1&lt;/priority&gt;
      &lt;/presence&gt;
      &lt;iq to='pubsub.example.com' type='set' xmlns='jabber:client' id='8556:sendIQ'&gt;
          &lt;pubsub xmlns='http://jabber.org/protocol/pubsub'&gt;
              &lt;create node='/home/localhost/john/draw/'/&gt;
          &lt;/pubsub&gt;
      &lt;/iq&gt;
  &lt;/body&gt;
  </code></pre>