void save(GameLeagueFile xmlFile) {
		int nofMatchs;
		if ((m_nofTeams % 2) == 0) {
			nofMatchs = m_nofDiv * m_nofTeams / 2;
		} else {
			nofMatchs = m_nofDiv * (m_nofTeams + 1) / 2;
		}
		xmlFile.writeSurroundingStartElement("Schedule");
		for (int i = 0; i < m_nofRounds; i++) {
			xmlFile.writeSurroundingStartElement("SeasonRound");
			for (int match = 0; match < nofMatchs; match++) {
				xmlFile.writeSurroundingStartElement("SeasonMatch");
				Match m = this.rs.rounds[i].getMatches()[match];
				Team home = m.getResultHome();
				Team away = m.getResultAway();
				int endHomeScore = m.getResultEndHomeScore();
				int endAwayScore = m.getResultEndAwayScore();
				if (home == null) {
					xmlFile.write("HomeId", -1);
				} else {
					xmlFile.write("HomeId", home.getId());
				}
				if (away == null) {
					xmlFile.write("AwayId", -1);
				} else {
					xmlFile.write("AwayId", away.getId());
				}
				xmlFile.write("EndHomeScore", endHomeScore);
				xmlFile.write("EndAwayScore", endAwayScore);
				xmlFile.writeSurroundingEndElement();
			}
			xmlFile.writeSurroundingEndElement();
		}
		for (int i = 0; i < m_nofPlayoffFinals * m_gamesPerFinal; i++) {
			xmlFile.writeSurroundingStartElement("PlayoffRound");
			for (int match = 0; match < Math.pow(2, m_nofPlayoffFinals - 1); match++) {
				xmlFile.writeSurroundingStartElement("PlayoffMatch");
				Match m = this.ps.rounds[i].getMatches()[match];
				Team home = m.getResultHome();
				Team away = m.getResultAway();
				int endHomeScore = m.getResultEndHomeScore();
				int endAwayScore = m.getResultEndAwayScore();
				if (home == null) {
					xmlFile.write("HomeId", -1);
				} else {
					xmlFile.write("HomeId", home.getId());
				}
				if (away == null) {
					xmlFile.write("AwayId", -1);
				} else {
					xmlFile.write("AwayId", away.getId());
				}
				xmlFile.write("EndHomeScore", endHomeScore);
				xmlFile.write("EndAwayScore", endAwayScore);
				xmlFile.writeSurroundingEndElement();
			}
			xmlFile.writeSurroundingEndElement();
		}
		xmlFile.writeSurroundingEndElement(); // Schedule
	}