Exemple #1
0
        public XMLConfig cloneXMLObject()
        {
            XMLConfig result;

            result = new XMLConfig();
            result.loadXML(this.GetXML());
            return(result);
        }
Exemple #2
0
        public XMLConfig cloneXMLObjectFromNode(string nodePath, Boolean deep)
        {
            XmlNode   xmlNode;
            XMLConfig result = null;

            if (this.HasNode(nodePath))
            {
                result  = new XMLConfig();
                xmlNode = GetNode(nodePath).CloneNode(deep);
                result.loadXML(xmlNode.OuterXml);
                xmlNode = null;
            }
            return(result);
        }