public void NewXmlNode(string styleName) { this.Node = this.Document .CreateNode ("categories","chart"); XmlAttribute xa=this.Document .CreateAttribute ("style-name","chart"); xa.Value =styleName; Node.Attributes .Append (xa); }