// ---------------------------------------------------------------- /* xml_delete.cs Sep/18/2011 */ // ---------------------------------------------------------------- using System; using System.Collections.Generic; // ---------------------------------------------------------------- public static class xml_read { public static void Main (string[] args) { Console.WriteLine ("*** 開始 ***"); string xml_file = args[0]; string key = args[1]; Console.WriteLine (key); string str_xml = file_io.file_to_str_proc (xml_file); // Console.WriteLine (str_xml); Dictionary dict_aa = xml_manipulate.xml_to_dict_proc (str_xml); dict_aa.Remove (key); text_manipulate.dict_display_proc (dict_aa); string xml_str = xml_manipulate.dict_to_xml_proc (dict_aa); file_io.file_write_proc (xml_file,xml_str); Console.WriteLine ("*** 終了 ***"); } // ---------------------------------------------------------------- } // ----------------------------------------------------------------