 NS = require('./ns')
 errors = require('../errors')
 forms = require('./forms')
+RSM = require('./rsm')
 
 class Request
     constructor: (conn, @opts, cb) ->

        if @opts.actor
            pubsubEl.c('actor', xmlns: NS.BUDDYCLOUD_V1).
                t(@opts.actor)
        pubsubEl.up()

    iqType: ->

    decodeReply: (stanza) ->
        @results = []
        pubsubEl = stanza?.getChild('pubsub', @xmlns)
        if pubsubEl?
            if @decodeReplyEl?
                for child in pubsubEl.children
                    unless typeof child is 'string'
                        @decodeReplyEl child
            if (rsmEl = pubsubEl.getChild('rsm', NS.RSM))
                @results.rsm = RSM.fromXml(rsmEl)
        @results

class CreateNode extends PubsubRequest
