def init(element)
    	@xml_doc = element
      self.away_team_runs = element.attributes["away_team_runs"]
      self.away_team_hits = element.attributes["away_team_hits"]
      self.away_team_errors = element.attributes["away_team_errors"]
      
      self.home_team_runs = element.attributes["home_team_runs"]
      self.home_team_hits = element.attributes["home_team_hits"]
      self.home_team_errors = element.attributes["home_team_errors"]
    
      # Set score by innings
      set_innings 
    end
def init(element)
    	@xml_doc = element
      self.away_team_runs = element.attributes["away_team_runs"]
      self.away_team_hits = element.attributes["away_team_hits"]
      self.away_team_errors = element.attributes["away_team_errors"]
      
      self.home_team_runs = element.attributes["home_team_runs"]
      self.home_team_hits = element.attributes["home_team_hits"]
      self.home_team_errors = element.attributes["home_team_errors"]
    
      # Set score by innings
      set_innings 
    end
Initialize this instance from an XML element containing linescore data.