Пример #1
0
        XmlDocument(XmlImplementation impl, XmlNameTable nt) : base(null)
        {
            if (impl == null)
            {
                implementation = new XmlImplementation();
            }
            else
            {
                implementation = impl;
            }

            nameTable = (nt != null) ? nt : implementation.InternalNameTable;
            nameCache = new XmlNameEntryCache(nameTable);
            AddDefaultNameTableKeys();
            resolver = new XmlUrlResolver();

            Type type = GetType();

            optimal_create_element   = type.GetMethod("CreateElement", optimal_create_types).DeclaringType == typeof(XmlDocument);
            optimal_create_attribute = type.GetMethod("CreateAttribute", optimal_create_types).DeclaringType == typeof(XmlDocument);
        }
Пример #2
0
 protected internal XmlDocument(XmlImplementation imp) : this(imp, null)
 {
 }