     .fail (msg) ->
       @returnResult false, msg, callback
 
-  /**
-   * Creates an XML instance.
-   * @return {number} The result of adding num1 and num2.
-   */
+  ###
+  Creates an XML instance.
+  @return {number} The result of adding num1 and num2.
+  ###
   createXml: () ->
     ops =
       version: '1.0'

        deffered.resolve @output
    deffered.promise

  /**
   * Adds an element to given xml instance.
   * @param {xml} xml The xml instance to be used.
   * @param {element} elem The xml element to be added.
   * @param {string} attr The name of the element.
   * @param {string} xAttr ???
   * @return {xml} The xml with added element.
   */
  add: (xml, elem, attr, xAttr) ->
    xAttr = attr unless xAttr
    value = elem[attr]

CommonUpdater = require('sphere-node-sync').CommonUpdater
InventoryUpdater = require('sphere-node-sync').InventoryUpdater


###
Elastic.io component exporting inventory items from Sphere.io.
For each inventory item a XML file will be written.
###
class StockExport extends CommonUpdater
  constructor: (options = {}) ->
    super options
