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

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

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

revision 44 by william, Fri Mar 8 03:36:44 2013 UTC revision 46 by william, Fri Mar 8 04:01:25 2013 UTC
# Line 19  namespace libxmltv.Core Line 19  namespace libxmltv.Core
19          private XMLTVRuntimeInstance instance;          private XMLTVRuntimeInstance instance;
20          protected XMLTVLoader(string xml_file, XMLTVRuntimeInstance xmltv)          protected XMLTVLoader(string xml_file, XMLTVRuntimeInstance xmltv)
21          {          {
22              XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("Creating Instance of XMLTVLoader");              xmltv_logger.Log.Verbose.Debug.WriteLine("Creating Instance of XMLTVLoader");
23              //string _xmltv;              //string _xmltv;
24              //if (!Internals.VerifyInstance<string>(xmltv, out _xmltv)) { return; }              //if (!Internals.VerifyInstance<string>(xmltv, out _xmltv)) { return; }
25              //xmlfile = _xmltv;              //xmlfile = _xmltv;
# Line 35  namespace libxmltv.Core Line 35  namespace libxmltv.Core
35    
36          private void LoadXml()          private void LoadXml()
37          {          {
38              XMLTV_LOGGER.Log.Info.WriteLine("Loading XMLTV File: {0}", instance.XmlFile.Name);              xmltv_logger.Log.Info.WriteLine("Loading XMLTV File: {0}", instance.XmlFile.Name);
39              //XMLTV_LOGGER.Log.Warn.WriteLine("XML File Loading has not been implemented yet!");              //xmltv_logger.Log.Warn.WriteLine("XML File Loading has not been implemented yet!");
40              try              try
41              {              {
42                  instance.XmlDoc = XDocument.Load(instance.XmlFile.FullName);                  instance.XmlDoc = XDocument.Load(instance.XmlFile.FullName);
43              }              }
44              catch (Exception ex)              catch (Exception ex)
45              {              {
46                  XMLTV_LOGGER.Log.Error.WriteLine("Failed to load XMLTV File: {0}", instance.XmlFile.Name);                  xmltv_logger.Log.Error.WriteLine("Failed to load XMLTV File: {0}", instance.XmlFile.Name);
47                  XMLTV_LOGGER.Log.Error.WriteLine(ex.GetBaseException().ToString());                  xmltv_logger.Log.Error.WriteLine(ex.GetBaseException().ToString());
48              }              }
49          }          }
50    

Legend:
Removed from v.44  
changed lines
  Added in v.46

  ViewVC Help
Powered by ViewVC 1.1.22