private TeamInfo readTeamXml(final Element team) throws Exception { /* example team XML file content <team teamNumber="1329" name="RoboRebels" city="St Louis" state="MO" country="US"> General notes about this team </team> */ int theTeamNumber = team.getAttribute("teamNumber").getIntValue(); String theTeamName = team.getAttribute("name").getValue(); String theTeamCity = team.getAttribute("city").getValue(); String theTeamState = team.getAttribute("state").getValue(); String theTeamCountry = team.getAttribute("country").getValue(); String theNotes = team.getTextNormalize(); TeamInfo theTeam = new TeamInfo(theTeamNumber, theTeamName, theTeamCity, theTeamState, theTeamCountry, null); theTeam.setNotes(theNotes); theTeam.setImageFile(locateImageFile(theTeamNumber)); return theTeam; }