public override void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("excel_underlyingModel_para");
            xmlWriter.WriteElementString("excel_type", "excel_hullWhiteOneFactor");
            xmlWriter.WriteStartElement("excel_hullWhiteOneFactor");

            xmlWriter.WriteElementString("currentValue", this.currentValue_);
            xmlWriter.WriteElementString("alpha", this.alpha_);
            xmlWriter.WriteElementString("volatility", this.volatility_);

            excel_rateInfoViewModel_.buildXml(xmlWriter);

            xmlWriter.WriteElementString("linkedCurveCode", this.linkedCurveCode_);
            //xmlWriter.WriteElementString("tenor" , this.tenor_);

            if (excel_yieldCurveViewModel_ != null)
            {
                excel_yieldCurveViewModel_.buildXml(xmlWriter);
            }
            else
            {
                xmlWriter.WriteElementString("excel_yieldCurve", "empty");
            }

            xmlWriter.WriteEndElement();
            xmlWriter.WriteEndElement();
        }
        public override void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("excel_underlyingModel_para");
            xmlWriter.WriteElementString("excel_type", "excel_hullWhiteTwoFactor");
            xmlWriter.WriteStartElement("excel_hullWhiteTwoFactor");
            xmlWriter.WriteElementString("currentValue", this.currentValue_);

            xmlWriter.WriteElementString("alpha", this.alpha_);

            xmlWriter.WriteElementString("volatility", this.volatility_);

            excel_rateInfoViewModel_.buildXml(xmlWriter);

            xmlWriter.WriteElementString("linkedCurveCode", this.linkedCurveCode_);

            excel_yieldCurveViewModel_.buildXml(xmlWriter);

            xmlWriter.WriteElementString("vba_description", this.vba_description_);

            xmlWriter.WriteEndElement();
            xmlWriter.WriteEndElement();
        }