Exemple #1
0
        /// <summary>
        /// Clone document
        /// </summary>
        /// <returns></returns>
        public VXmlDocument Clone(string new_name)
        {
            string nm = new_name.Trim().ToLower();

            if (nm == "")
            {
                throw new VXmlException(VXmlException.E0018_DOC_NAME_MISSING_CODE, "(Clone)");
            }

            VXmlDocument d = (VXmlDocument)clone_xml_node(this, ParentNode, true);

            d.Name = new_name;
            return(d);
        }
Exemple #2
0
 /// <summary>
 /// Delete document
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public void RemoveDocument(VXmlDocument doc)
 {
     remove_child_node(doc, true);
 }