code: function(feature, node) {
          for (var key in feature.attributes) {
              var tag = this.createElementNS(null, "tag");
              tag.setAttribute("k", key);
              tag.setAttribute("v", feature.attributes[key]);
              node.appendChild(tag);
          }
      }
docs: Method: serializeTags
  Given a feature, serialize the attributes onto the given node.
  
  Parameters:
  feature - {<OpenLayers.Feature.Vector>}
  node - {DOMNode}