// Constructor.
	internal XmlElement(XmlNode parent, NameCache.NameInfo name)
			: base(parent)
			{
				this.name = name;
				this.attributes = null;
				this.isEmpty = true;
			}
	// Initialize the document.
	private void Initialize()
			{
				baseURI = String.Empty;
				preserveWhitespace = false;
				placeholder = new XmlDocumentFragment(this);
				nameCache = new NameCache(implementation.nameTable);
			}
	// Constructors.
	internal XmlAttribute(XmlNode parent, NameCache.NameInfo name)
			: base(parent)
			{
				this.name = name;
				this.isDefault = false;
			}
Beispiel #4
0
        // 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));
        }