/// <summary> /// Attribute objects are reused during parsing to reduce memory allocations, /// hence the Reset method. /// </summary> public void Reset(string name, XmlNodeType nt, string value) { this.Value = value; this.Name = name; this.NodeType = nt; this.Space = XmlSpace.None; this.XmlLang = null; this.IsEmpty = true; this.attributes.Count = 0; this.DtdType = null; }