public void Write( System.Xml.XmlWriter xmlWriter, XCRI.Interfaces.XCRICAP11.IAttendancePattern attendancePattern ) { if (attendancePattern == null) throw new ArgumentNullException("attendancePattern"); if ((attendancePattern.CompatibleWith & XCRIProfiles.XCRI_v1_1) == 0) return; string value = attendancePattern.GetElementValueAsString(); if (String.IsNullOrEmpty(value)) return; this._Write ( xmlWriter, "attendancePattern", Configuration.Namespaces.XCRICAP11NamespaceUri, value, false, attendancePattern.XsiTypeValue, attendancePattern.XsiTypeValueNamespace, attendancePattern.XmlLanguage ); }
public void Write( System.Xml.XmlWriter xmlWriter, XCRI.Interfaces.XCRICAP11.IStudyMode studyMode ) { if (studyMode == null) throw new ArgumentNullException("studyMode"); if ((studyMode.CompatibleWith & XCRIProfiles.XCRI_v1_1) == 0) return; string value = studyMode.GetElementValueAsString(); if(String.IsNullOrEmpty(value)) return; this._Write ( xmlWriter, "studyMode", Configuration.Namespaces.XCRICAP11NamespaceUri, value, false, studyMode.XsiTypeValue, studyMode.XsiTypeValueNamespace, studyMode.XmlLanguage ); }