You can implement interface IXmlSerializable to Enrolment and in WriteXml method generate student and course XML which will contains only keys e.g.:
and in ReadXml method you can load references from this. You must also set XmlIgnore attribute to Student and Course property.