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