code: function(node, obj) {
          var value, uri;
          for(var name in obj) {
              if(obj[name] != null && obj[name].toString) {
                  value = obj[name].toString();
                  // check for qualified attribute name ("prefix:local")
                  uri = this.namespaces[name.substring(0, name.indexOf(":"))] || null;
                  this.setAttributeNS(node, uri, name, value);
              }
          }
      }
docs: Method: setAttributes
  Set multiple attributes given key value pairs from an object.
  
  Parameters:
  node - {Element} An element node.
  obj - {Object || Array} An object whose properties represent attribute
  names and values represent attribute values.  If an attribute name
  is a qualified name ("prefix:local"), the prefix will be looked up
  in the parsers {namespaces} object.  If the prefix is found,
  setAttributeNS will be used instead of setAttribute.