private void NewXmlNode(BookmarkType type, string bookmarkname)
{
if (type == BookmarkType.Start)
this.Node = this.Document.CreateNode("bookmark-start", "text");
else if (type == BookmarkType.End)
this.Node = this.Document.CreateNode("bookmark-end", "text");
else
this.Node = this.Document.CreateNode("bookmark", "text");
XmlAttribute xa = this.Document.CreateAttribute("name", "text");
xa.Value = bookmarkname;
this.Node.Attributes.Append(xa);
}