private Element writeTeamXml(final TeamInfo team) {
   /*  example team XML file content
   <team teamNumber="1329" name="RoboRebels" city="St Louis" state="MO" country="US">
       General notes about this team
   </team>
   */
   Element e = new Element("team");
   e.setAttribute("teamNumber", Integer.toString(team.getTeamNumber()));
   e.setAttribute("name", team.getTeamName());
   if (team.getCity().length() > 0) {
     e.setAttribute("city", team.getCity());
   }
   if (team.getState().length() > 0) {
     e.setAttribute("state", team.getState());
   }
   if (team.getCountry().length() > 0) {
     e.setAttribute("country", team.getCountry());
   }
   e.setText(team.getNotes());
   return e;
 }