/[xmltv_parser]/trunk/libxmltv/Core/XMLTV_LOADER.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTV_LOADER.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libxmltv/Core/XMLTV_LOADER.cs	2013/03/07 09:06:23	15
+++ trunk/libxmltv/Core/XMLTV_LOADER.cs	2013/03/07 09:26:43	16
@@ -15,8 +15,7 @@
     {
         public static object CreateLoader(string xml_file)
         {
-            xmltv_logger.Initialize();
-            xmltv_logger.Log.Debug.WriteLine("Logged from XMLTV.CreateLoader");
+            XMLTV_LOGGER.Initialize();
             XMLTV_LOADER loader = new XMLTV_LOADER(xml_file);
             return loader;
         }
@@ -47,10 +46,17 @@
         private string xmlfile = string.Empty;
         public XMLTV_LOADER(string xml_file)
         {
-            xmlfile = xml_file;            
+            xmlfile = xml_file;
+            LoadXml();
         }
         #region IXMLTV_LOADER
         public FileInfo XmlFile { get { return new FileInfo(xmlfile); } }
         #endregion
+
+        private void LoadXml()
+        {
+            XMLTV_LOGGER.Log.Info.WriteLine("Loading XMLTV File: {0}", XmlFile.Name);
+            XMLTV_LOGGER.Log.Warn.WriteLine("XML File Loading has not been implemented yet!");
+        }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22