Xml parser with storage for all events. It parses wiki xml dump sent as parameter to constructor. It has functionality like Controller. It uses Indexes to search for events or return all events information
Пример #1
0
		public void exportXML_test()
		{

			XElement expected = XElement.Load(@"..\..\..\..\Data\sample_output_enwiki-latest-pages-articles1_Test_example.xml");
			Console.WriteLine(expected.ToString());

			String inputPath =	@"..\..\..\..\Data\sample_input_enwiki-latest-pages-articles1.xml";
			String exportPath = @"..\..\..\..\Data\sample_output_enwiki-latest-pages-articles1_unit_test.xml";
			
			MyXMLParser control = new MyXMLParser();
			control.initParsing(inputPath);
			control.exportEventsXML(exportPath);

			Console.WriteLine(control.getXmlString());
			Assert.AreEqual(expected.ToString(), control.getXmlString());
			//XElement actual = testClass.exportXML();
		}
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();
			control = new MyXMLParser();
        }
Пример #3
0
 public MainWindow()
 {
     InitializeComponent();
     control = new MyXMLParser();
 }