CSXml.cXml.newXml C# (CSharp) Метод

newXml() публичный Метод

public newXml ( ) : bool
Результат bool
        public bool newXml()
        {
            try
            {
                m_domDoc = new XmlDocument();
                XmlNode node = m_domDoc.CreateNode(XmlNodeType.Element, "Root", "");
                m_domDoc.AppendChild(node);

                return true;
            }
            catch (Exception ex)
            {
                cError.mngError(ex, "NewXml", C_MODULE, "There was an error trying to create the file: " + m_name);
                return false;
            }
        }