private void CreateAttribute(string name, string text, string prefix) { XmlAttribute xa = this.TextDocument.CreateAttribute(prefix, name); xa.Value = text; this.PropertyNode.Attributes.Append(xa); }