// Constructor. internal XmlDocumentType(XmlNode parent, String name, String publicId, String systemId, String internalSubset) : base(parent) { XmlNameTable nt = parent.FindOwnerQuick().NameTable; this.name = name; this.publicId = publicId; this.systemId = systemId; this.internalSubset = internalSubset; entities = new XmlNamedNodeMap(this); notations = new XmlNamedNodeMap(this); attributes = null; }
// Convert a special name into a full "NameInfo" object. private static NameCache.NameInfo ConvertName(XmlNode parent, String name) { NameCache cache = parent.FindOwnerQuick().nameCache; return cache.Add(name, String.Empty, String.Empty); }