/// <summary>
        /// Creating XML string from record.
        /// </summary>
        /// <param name="Literals">list of literals (subelements)</param>
        /// <returns>XML string</returns>
        public string ToXML(List <Rec_literal> Literals)
        {
            string XML = "";

            db_name     = XMLHelper.replaceXMLsign(db_name);
            matrix_name = XMLHelper.replaceXMLsign(matrix_name);
            task_name   = XMLHelper.replaceXMLsign(task_name);
            task_type   = XMLHelper.replaceXMLsign(task_type);
            cedent_type = XMLHelper.replaceXMLsign(cedent_type);

            XML += "<bool_cedent id=\"" + id + "\" name=\"" + name + "\" db_name=\"" + db_name + "\" matrix_name=\"" + matrix_name +
                   "\" task_name=\"" + task_name + "\" task_type=\"" + task_type +
                   "\" cedent_type=\"" + cedent_type +
                   "\" literal_cnt=\"" + literal_cnt.ToString() +
                   "\" length=\"" + length + "\">";

            // adding each subelement - literal
            foreach (Rec_literal Lit in Literals)
            {
                XML += Lit.ToXML();
            }

            XML += "</bool_cedent>";
            return(XML);
        }
        /// <summary>
        /// Creating XML string from record.
        /// </summary>
        /// <param name="KL_Literals">list of KL literals (subelements)</param>
        /// <returns>XML string</returns>
        public string ToXML(List <Rec_KL_literal> KL_Literals)
        {
            string XML = "";

            length = XMLHelper.replaceXMLsign(length);
            name   = XMLHelper.replaceXMLsign(name);

            XML += "<sub_KL_cedent name=\"" + name + "\" literal_cnt=\"" + literal_cnt.ToString() +
                   "\" length=\"" + length + "\">";

            // adding each subelement - literal
            foreach (Rec_KL_literal Lit in KL_Literals)
            {
                XML += Lit.ToXML();
            }

            XML += "</sub_KL_cedent>";
            return(XML);
        }