/// <summary>
        /// Loads workbook from location. WARNING: currently, book is not de-serialized in XML correctly.
        /// </summary>
        /// <param name="sourceFileLocation">Path to <i>.xmind</i> file</param>
        /// <returns></returns>
        public XMindWorkBook LoadWorkBookFromLocation(string sourceFileLocation)
        {
            // WorkbookName = workbookName;
            // could be replaced with factory method
            var fi = new FileInfo(sourceFileLocation);

            if (!fi.Exists)
            {
                throw new FileNotFoundException($"{nameof(sourceFileLocation)} is invalid");
            }
            var workbook = new XMindWorkBook(fi.Name, this, new XMindFileDocumentBuilder(sourceFileLocation));

            return(workbook);
        }
 public XMindTopic(XElement implementation, XMindWorkBook book)
 {
     OwnedWorkbook  = book;
     Implementation = DOMUtils.AddIdAttribute(implementation);
 }