コード例 #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));
        }