Example #1
0
 public void LoadXml(string xml)
 {
     if (xml != "" && xml != null)
     {
         DomLoader l = new DomLoader(xml, this);
     }
 }
Example #2
0
 public void LoadXml(string xml)
 {
     if (!string.IsNullOrEmpty(xml))
     {
         DomLoader.Load(xml, this);
     }
 }
Example #3
0
 /// <summary>
 /// </summary>
 /// <param name="xml">
 /// </param>
 public void LoadXml(string xml)
 {
     if (xml != string.Empty && xml != null)
     {
         var l = new DomLoader(xml, this);
     }
 }
Example #4
0
 public bool LoadStream(Stream stream)
 {
     try
     {
         StreamReader sr = new StreamReader(stream);
         DomLoader    l  = new DomLoader(sr, this);
         sr.Close();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Example #5
0
 public bool LoadStream(Stream stream)
 {
     try
     {
         using (var sr = new StreamReader(stream))
         {
             DomLoader.Load(sr, this);
             return(true);
         }
     }
     catch
     {
         return(false);
     }
 }
Example #6
0
 public bool LoadFile(string filename)
 {
     if (File.Exists(filename))
     {
         try
         {
             using (var sr = new StreamReader(File.OpenRead(filename)))
             {
                 DomLoader.Load(sr, this);
                 return(true);
             }
         }
         catch
         {
             return(false);
         }
     }
     return(false);
 }
Example #7
0
 public bool LoadFile(string filename)
 {
     if (File.Exists(filename) == true)
     {
         try
         {
             StreamReader sr = new StreamReader(filename);
             DomLoader    l  = new DomLoader(sr, this);
             sr.Close();
             return(true);
         }
         catch
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
Example #8
0
 public bool LoadFile(string filename)
 {
     if (File.Exists(filename) == true)
     {
         try
         {
             StreamReader sr = new StreamReader(filename);
             DomLoader l = new DomLoader(sr, this);
             sr.Close();
             return true;
         }
         catch
         {
             return false;
         }
     }
     else
     {
         return false;
     }
 }
Example #9
0
 public void LoadXml(string xml)
 {
     if (xml != "" && xml != null)
     {
         DomLoader l = new DomLoader(xml, this);
     }
 }
Example #10
0
 public bool LoadStream(Stream stream)
 {
     try
     {
         StreamReader sr = new StreamReader(stream);
         DomLoader l = new DomLoader(sr, this);
         sr.Close();
         return true;
     }
     catch
     {
         return false;
     }
 }