public void ValidateNvdlNvdl ()
		{
			NvdlRules rules = null;
			string path = "Test/XmlFiles/nvdl.nvdl";
			using (TextReader r = File.OpenText (path)) {
				rules = NvdlReader.Read (
					new XmlTextReader (path, r));
			}
			using (TextReader r = File.OpenText (path)) {
				XmlTextReader xtr = new XmlTextReader (path, r);
				NvdlValidatingReader vr = new NvdlValidatingReader (xtr, rules);
				while (!vr.EOF)
					vr.Read ();
			}				
		}
Example #2
0
		static void ValidateNvdl (string [] args)
		{
			XmlTextReader nvdlxtr = new XmlTextReader (args [1]);
			NvdlRules nvdl = NvdlReader.Read (nvdlxtr);
			nvdlxtr.Close ();
			for (int i = 2; i < args.Length; i++) {
				XmlTextReader xtr = new XmlTextReader (args [i]);
				NvdlValidatingReader nvr = new NvdlValidatingReader (xtr, nvdl);
				while (!nvr.EOF)
					nvr.Read ();
				xtr.Close ();
			}
		}
Example #3
0
 public NvdlDispatcher(SimpleRules rules, NvdlValidatingReader source)
 {
     this.validator = source;
     this.rules     = rules;
 }
Example #4
0
		public NvdlDispatcher (SimpleRules rules, NvdlValidatingReader source)
		{
			this.validator = source;
			this.rules = rules;
		}