private void AddIndexEntryNode(string nodeName, IndexEntryTypes indexEntryType)
{
XmlNode indexEntryNode = this.TableOfContents.Document.CreateNode(
nodeName, "text");
if (indexEntryType == IndexEntryTypes.TabStop)
{
XmlAttribute xa = this.TableOfContents.Document.CreateAttribute(
"type", "style");
//Fixed to be right align
xa.Value = "right";
indexEntryNode.Attributes.Append(xa);
xa = this.TableOfContents.Document.CreateAttribute(
"leader-char", "style");
//Fixed usage of .
xa.Value = ".";
indexEntryNode.Attributes.Append(xa);
}
this.Node.AppendChild(indexEntryNode);
}
}