public System.Xml.XmlNode Generate(XCRI.Interfaces.XCRICAP11.ICourse course) { return(this._GetGeneratedNode((w) => { this.XmlGenerator.Write(w, course); })); }
public void Write ( System.Xml.XmlWriter xmlWriter, XCRI.Interfaces.XCRICAP11.ICourse course ) { if (course == null) { throw new ArgumentNullException("course"); } if ((course.CompatibleWith & XCRIProfiles.XCRI_v1_1) == 0) { return; } this._WriteStartElement(xmlWriter, "course", Configuration.Namespaces.XCRICAP11NamespaceUri); this.WriteXCRI11GenericItem(xmlWriter, (XCRI.Interfaces.XCRICAP11.IGeneric)course); foreach (XCRI.Interfaces.XCRICAP11.IQualification qualification in course.Qualifications) { this.Write(xmlWriter, qualification); } foreach (XCRI.Interfaces.XCRICAP11.IPresentation presentation in course.Presentations) { this.Write(xmlWriter, presentation); } this._WriteEndElement(xmlWriter); }