private void NewXmlNode(string id, string notetext, FootnoteType type)
{
this.Node = this.Document.CreateNode("note", "text");
XmlAttribute xa = this.Document.CreateAttribute("id", "text");
xa.Value = "ftn"+id;
this.Node.Attributes.Append(xa);
xa = this.Document.CreateAttribute("note-class", "text");
xa.Value = type.ToString();
this.Node.Attributes.Append(xa);
//Node citation
XmlNode node = this.Document.CreateNode("not-citation", "text");
node.InnerText = id;
this._node.AppendChild(node);
//Node Footnode body
XmlNode nodebody = this.Document.CreateNode("note-body", "text");
//Node Footnode text
node = this.Document.CreateNode("p", "text");
node.InnerXml = notetext;
xa = this.Document.CreateAttribute("style-name", "text");
xa.Value = (type == FootnoteType.footnode)?"Footnote":"Endnote";
node.Attributes.Append(xa);
nodebody.AppendChild(node);
this._node.AppendChild(nodebody);
}