private static void WriteTeamNode(XmlTextWriter writer, NflTeam t) { writer.WriteStartElement("team"); writer.WriteAttributeString("season", t.Season); writer.WriteAttributeString("id", t.TeamCode); writer.WriteAttributeString("name", t.Name); writer.WriteAttributeString("division", t.Division()); writer.WriteEndElement(); }