static XMLAssembly CreateXMLAssembly (string file)
		{
			XmlDocument doc = new XmlDocument ();
			doc.Load (File.OpenRead (file));

			XmlNode node = doc.SelectSingleNode ("/assemblies/assembly");
			XMLAssembly result = new XMLAssembly ();
			try {
				result.LoadData (node);
			} catch (Exception e) {
				Console.Error.WriteLine ("Error loading {0}: {1}\n{2}", file, e.Message, e);
				Environment.Exit (1);
			}

			return result;
		}
Exemple #2
0
		XmlDocument CompareAssemblies (XmlDocument base_doc, XmlDocument updated_doc)
		{
			XMLAssembly base_assm = new XMLAssembly ();
			base_assm.LoadData (base_doc.SelectSingleNode ("/assemblies/assembly"));
			XMLAssembly updated_assm = new XMLAssembly ();
			updated_assm.LoadData (updated_doc.SelectSingleNode ("/assemblies/assembly"));
			return base_assm.CompareAndGetDocument (updated_assm);
		}