Ejemplo n.º 1
0
 public System.Xml.XmlNode Generate(XCRI.Interfaces.XCRICAP11.IStudyMode studyMode)
 {
     return(this._GetGeneratedNode((w) =>
     {
         this.XmlGenerator.Write(w, studyMode);
     }));
 }
Ejemplo n.º 2
0
        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
            );
        }