code: def ParseDom(self, dom, feed):
      
      shape_num = 0
      for node in dom.getElementsByTagName('Placemark'):
        p = self.ParsePlacemark(node)
        if p.IsPoint():
          (lon, lat) = p.coordinates[0]
          m = self.stopNameRe.search(p.name)
          feed.AddStop(lat, lon, m.group(1))
        elif p.IsLine():
          self.ConvertPlacemarkToShape(p, feed)
docs: Parses the given kml dom tree and updates the Google transit feed object.
  
      Args:
        dom - kml dom tree
        feed - an instance of Schedule class to be updated