private void NewXmlNode( string stylename) { this.Node = this.Document.CreateNode("span", "text"); XmlAttribute xa = this.Document.CreateAttribute("style-name", "text"); xa.Value = stylename; this.Node.Attributes.Append(xa); }