         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.
-   */
+  ###
+  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]

    .fail (msg) ->
      @returnResult false, msg, callback

  /**
   * Creates an XML instance.
   * @return {number} The result of adding num1 and num2.
   */
  createXml: () ->
    ops =
      version: '1.0'

    @add xe, entry, 'sku'
    @add xe, entry, 'quantityOnStock'

  ###
  Writes an xml file..
  @param {xml} xml The xml file to be written.
  @return {promise} The promise for writing the xml file.
  ###
  writeOutput: (xml) ->
    deffered = Q.defer()
    content = xml.end(pretty: true, indent: '  ', newline: "\n")
