Пример #1
0
 public void LoadXml(string xml)
 {
     if (xml != "" && xml != null)
     {
         var l = new DomLoader(xml, this);
     }
 }
Пример #2
0
 public bool LoadStream(Stream stream)
 {
     try
     {
         var sr = new StreamReader(stream);
         var l  = new DomLoader(sr, this);
         sr.Close();
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Пример #3
0
 public bool LoadFile(string filename)
 {
     if (File.Exists(filename) == true)
     {
         try
         {
             var sr = new StreamReader(filename);
             var l  = new DomLoader(sr, this);
             sr.Close();
             return(true);
         }
         catch
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }