示例#1
0
        private bool TryLoadXML(string uri)
        {
            try
            {
                XmlDocument xDoc = new XmlDocument();
                xDoc.Load(uri);

                //The root node is just a wrapper
                foreach (XmlNode filing in xDoc.DocumentElement.ChildNodes)
                {
                    RivetFiling f = new RivetFiling(filing);
                    this.Filings.Add(f);
                }

                return(true);
            }
            catch (Exception ex)
            {
                this.ErrorMessage = ex.Message;
            }

            return(false);
        }
示例#2
0
        private bool TryLoadXML( string uri )
        {
            try
            {
                XmlDocument xDoc = new XmlDocument();
                xDoc.Load( uri );

                //The root node is just a wrapper
                foreach( XmlNode filing in xDoc.DocumentElement.ChildNodes )
                {
                    RivetFiling f = new RivetFiling( filing );
                    this.Filings.Add( f );
                }

                return true;
            }
            catch( Exception ex )
            {
                this.ErrorMessage = ex.Message;
            }

            return false;
        }