/// <summary> /// Creates the footnote. /// </summary> /// <param name="document">The document.</param> /// <param name="node">The node.</param> /// <returns></returns> public Footnote CreateFootnote(IDocument document,XmlNode node) { try { Footnote fnote = new Footnote(document); fnote.Node = node.CloneNode(true); return fnote; } catch(Exception ex) { throw new AODLException("Exception while trying to create a Footnote.", ex); } }
/// <summary> /// Creates the footnote. /// </summary> /// <param name="document">The document.</param> /// <param name="node">The node.</param> /// <returns></returns> public Footnote CreateFootnote(IDocument document,XmlNode node) { try { Footnote fnote = new Footnote(document); fnote.Node = node.CloneNode(true); return fnote; } catch(Exception ex) { AODLException exception = new AODLException("Exception while trying to create a Footnote."); exception.InMethod = AODLException.GetExceptionSourceInfo(new StackFrame(1, true)); exception.Node = node; exception.OriginalException = ex; throw exception; } }