def set_batters
      @batters, away_batters, home_batters = [], [], []
      @xml_doc.elements.each("boxscore/batting[@team_flag='away']/batter") { |element| 
        batter = BattingAppearance.new
        batter.init(element)
        away_batters.push batter
      }
      @xml_doc.elements.each("boxscore/batting[@team_flag='home']/batter") { |element| 
        batter = BattingAppearance.new
        batter.init(element)
        home_batters.push batter
      }
      @batters << away_batters
      @batters << home_batters
    end
def set_batters
      @batters, away_batters, home_batters = [], [], []
      @xml_doc.elements.each("boxscore/batting[@team_flag='away']/batter") { |element| 
        batter = BattingAppearance.new
        batter.init(element)
        away_batters.push batter
      }
      @xml_doc.elements.each("boxscore/batting[@team_flag='home']/batter") { |element| 
        batter = BattingAppearance.new
        batter.init(element)
        home_batters.push batter
      }
      @batters << away_batters
      @batters << home_batters
    end
Sets an array of hashes where each hash holds data for a batter whom appeared
 in the game.  Specify either home or away team batters.