code: function(node) {
          var attributes = {};
          var i, len, data, key;
          var dataNodes = node.getElementsByTagName("Data");
          for (i = 0, len = dataNodes.length; i < len; i++) {
              data = dataNodes[i];
              key = data.getAttribute("name");
              var ed = {};
              var valueNode = data.getElementsByTagName("value");
              if (valueNode.length) {
                  ed['value'] = this.getChildValue(valueNode[0]);
              }
              if (this.kvpAttributes) {
                  attributes[key] = ed['value'];
              } else {
                  var nameNode = data.getElementsByTagName("displayName");
                  if (nameNode.length) {
                      ed['displayName'] = this.getChildValue(nameNode[0]);
                  }
                  attributes[key] = ed;
              } 
          }
          var simpleDataNodes = node.getElementsByTagName("SimpleData");
          for (i = 0, len = simpleDataNodes.length; i < len; i++) {
              var ed = {};
              data = simpleDataNodes[i];
              key = data.getAttribute("name");
              ed['value'] = this.getChildValue(data);
              if (this.kvpAttributes) {
                  attributes[key] = ed['value'];
              } else {
                  ed['displayName'] = key;
                  attributes[key] = ed;
              }
          }
          
          return attributes;    
      }
docs: Method: parseExtendedData
  Parse ExtendedData from KML. Limited support for schemas/datatypes.
  See http://code.google.com/apis/kml/documentation/kmlreference.html#extendeddata
  for more information on extendeddata.