private void NewXmlNode(int outlineLevel, string styleName) { this.Node = this.TableOfContents.Document.CreateNode( "table-of-content-entry-template", "text"); XmlAttribute xa = this.TableOfContents.Document.CreateAttribute( "outline-level", "text"); xa.Value = outlineLevel.ToString(); this.Node.Attributes.Append(xa); xa = this.TableOfContents.Document.CreateAttribute( "style-name", "text"); xa.Value = styleName; this.Node.Attributes.Append(xa); }