public static CT_ExternalLink Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
                return null;
            CT_ExternalLink ctObj = new CT_ExternalLink();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "externalBook")
                {
                    ctObj.externalBookField = CT_ExternalBook.Parse(childNode, namespaceManager);
                    ctObj.itemField = ctObj.externalBookField;
                    ctObj.itemType = ExternalLinkItem.externalBook;
                }
                else if (childNode.LocalName == "ddeLink")
                {
                    ctObj.ddeLinkField = CT_DdeLink.Parse(childNode, namespaceManager);
                    ctObj.itemField = ctObj.ddeLinkField;
                    ctObj.itemType = ExternalLinkItem.ddeLink;
                }
                else if (childNode.LocalName == "oleLink")
                {
                    ctObj.oleLinkField = CT_OleLink.Parse(childNode, namespaceManager);
                    ctObj.itemField = ctObj.oleLinkField;
                    ctObj.itemType = ExternalLinkItem.oleLink;
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLstField = CT_ExtensionList.Parse(childNode, namespaceManager);
                    ctObj.itemField = ctObj.extLstField;
                    ctObj.itemType = ExternalLinkItem.extLst;
                }
            }
            return ctObj;
        }
 public void ReadFrom(Stream is1)
 {
     try
     {
         XmlDocument xmldoc = ConvertStreamToXml(is1);
         ExternalLinkDocument doc = ExternalLinkDocument.Parse(xmldoc, NamespaceManager);
         link = doc.ExternalLink;
     }
     catch (XmlException e)
     {
         throw new IOException(e.Message);
     }
 }
        public static CT_ExternalLink Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_ExternalLink ctObj = new CT_ExternalLink();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "externalBook")
                {
                    ctObj.externalBookField = CT_ExternalBook.Parse(childNode, namespaceManager);
                    ctObj.itemField         = ctObj.externalBookField;
                    ctObj.itemType          = ExternalLinkItem.externalBook;
                }
                else if (childNode.LocalName == "ddeLink")
                {
                    ctObj.ddeLinkField = CT_DdeLink.Parse(childNode, namespaceManager);
                    ctObj.itemField    = ctObj.ddeLinkField;
                    ctObj.itemType     = ExternalLinkItem.ddeLink;
                }
                else if (childNode.LocalName == "oleLink")
                {
                    ctObj.oleLinkField = CT_OleLink.Parse(childNode, namespaceManager);
                    ctObj.itemField    = ctObj.oleLinkField;
                    ctObj.itemType     = ExternalLinkItem.oleLink;
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLstField = CT_ExtensionList.Parse(childNode, namespaceManager);
                    ctObj.itemField   = ctObj.extLstField;
                    ctObj.itemType    = ExternalLinkItem.extLst;
                }
            }
            return(ctObj);
        }
 public ExternalLinksTable()
     : base()
 {
     link = new CT_ExternalLink();
     link.AddNewExternalBook();
 }