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