public void TestLoadTaxonomyFromInstanceDocument_SEC_4Tax_Local_Partial2() { string copyTo = Path.GetTempFileName(); string curDir = Path.GetDirectoryName( copyTo ); string fileName = @"http://www.sec.gov/Archives/edgar/data/908823/000119312506095211/aabxx-20060228.xml"; string baseHRef = @"http://www.sec.gov/Archives/edgar/data/908823/000119312506095211/"; WebClient cli = new WebClient(); cli.DownloadFile( fileName, copyTo ); Instance ins = new Instance(); ArrayList errors; ins.TryLoadInstanceDoc( copyTo, out errors ); Taxonomy tax = new Taxonomy(); Assert.IsTrue( tax.LoadTaxonomyFromInstanceDocument( curDir, ins, false, baseHRef ), "Failed to load taxonomy." ); }
public void TestLoadTaxonomyFromInstanceDocument_SEC_4Tax_Local_HREF() { string fileName = @"S:\TestSchemas\BaseHRef\Instance\aabxx-20060228.xml"; string baseHRef = @"S:\TestSchemas\BaseHRef\Instance\"; Instance ins = new Instance(); ArrayList errors; ins.TryLoadInstanceDoc( fileName, out errors ); Taxonomy tax = new Taxonomy(); Assert.IsTrue( tax.LoadTaxonomyFromInstanceDocument( Path.GetTempPath(), ins, false, baseHRef ), "Failed to load taxonomy" ); ArrayList nodes = tax.GetNodesByPresentation(); Assert.IsTrue( nodes.Count >= 16, "should have presentation nodes" ); }
public void TestLoadTaxonomyFromInstanceDocument_SEC_2Tax() { string fileName = @"http://www.sec.gov/Archives/edgar/data/89800/000095015208008578/shw-20080930.xml"; string baseHRef = @"http://www.sec.gov/Archives/edgar/data/89800/000095015208008578"; Instance ins = new Instance(); ArrayList errors; ins.TryLoadInstanceDoc( fileName, out errors ); Taxonomy tax = new Taxonomy(); Assert.IsTrue( tax.LoadTaxonomyFromInstanceDocument( Path.GetTempPath(), ins, false, baseHRef ), "Failed to load taxonomy" ); ArrayList nodes = tax.GetNodesByPresentation(); Assert.IsTrue( nodes.Count >= 5, "should have presentation nodes" ); }
public void TestLoadTaxonomyFromInstanceDocument_SEC_4Tax() { string fileName = @"http://www.sec.gov/Archives/edgar/data/908823/000119312506095211/aabxx-20060228.xml"; string baseHRef = @"http://www.sec.gov/Archives/edgar/data/908823/000119312506095211/"; Instance ins = new Instance(); ArrayList errors; ins.TryLoadInstanceDoc( fileName, out errors ); Taxonomy tax = new Taxonomy(); Assert.IsTrue( tax.LoadTaxonomyFromInstanceDocument( Path.GetTempPath(), ins, false, baseHRef ), "Failed to load taxonomy" ); ArrayList nodes = tax.GetNodesByPresentation(); Assert.IsTrue( nodes.Count >= 16, "should have presentation nodes" ); }
public void TestLoadTaxonomyFromInstanceDocument() { string fileName = @"S:\TestSchemas\Instance With TaxonomyInfo.xml"; Instance ins = new Instance(); ArrayList errors; ins.TryLoadInstanceDoc( fileName, out errors ); Taxonomy tax = new Taxonomy(); Assert.IsTrue( tax.LoadTaxonomyFromInstanceDocument( @"S:\TestSchemas", ins, false ), "Failed to load taxonomy" ); ArrayList nodes = tax.GetNodesByPresentation(); Assert.IsTrue( nodes.Count > 10, "should have presentation nodes" ); }