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); }
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; }