code: function(node, atoms, call_back) {
          if (!Array.isArray(atoms))
              atoms = [atoms];
  
          var i, atom, entries = [];
          for (i = 0; i < atoms.length; i++) {
              atom = atoms[i];
  
              atom.updated = atom.updated || (new Date()).toISOString();
              if (atom.published && atom.published.toISOString)
                  atom.published = atom.published.toISOString();
  
              entries.push({
                  data: $build("entry", { xmlns:Strophe.NS.ATOM })
                          .children(atom).tree(),
                  attrs:(atom.id ? { id:atom.id } : {}),
              });
          }
          return this.publish(node, entries, call_back);
      }
docs: Function: publishAtom