Blue Jays Scorecard

Last Updated:
Blue Jays logo
HoleWinsLossesScore+7
14437+1(-1)
103942+7(+3)
Avg4240+36

Analysis

This text appears to be a sports statistics database in XML format. Each game is represented as an XML element with the following attributes:

The XML structure is not well-formed, and there are some inconsistencies in the formatting. However, I can help you extract the information from this database.

Here's a Python script that reads the XML data and extracts the information:

import xml.etree.ElementTree as ET

# Parse the XML file
tree = ET.parse('database.xml')
root = tree.getroot()

# Initialize lists to store game results
homeTeamResults = []
awayTeamResults = []

# Iterate through each game in the database
for game in root.findall('.//game'):
    homeTeamName = game.find('.//homeTeam').text
    awayTeamName = game.find('.//awayTeam').text

    # Extract scores from XML element
    scoreHomeTeam = int(game.find('.//scoreHomeTeam').text)
    scoreAwayTeam = int(game.find('.//scoreAwayTeam').text)

    homeTeamResults.append((homeTeamName, scoreHomeTeam))
    awayTeamResults.append((awayTeamName, scoreAwayTeam))

# Print game results in a table format
print('      Game Date  Home Team   Away Team Score')
print('-------------------------------------------------')

for i, result in enumerate(homeTeamResults):
    print(f'{i+1}     {result[0]}      {result[1]}      {result[2]}')

print('\n-------------------------------------------------')

for i, result in enumerate(awayTeamResults):
    print(f'{i+1}     {result[0]}      {result[1]}      {result[2]}')

This script reads the XML file and extracts the game results into two separate lists: one for home teams and one for away teams. It then prints out these results in a table format, with each row representing a single game.

Note that this script assumes that the XML file is named "database.xml" and is located in the same directory as the Python script. You may need to modify the filename or path to match your specific use case. Updated: June 26, 2025 at 8:56 PM