public void LoadXml(string xml) { if (!string.IsNullOrEmpty(xml)) { DomLoader.Load(xml, this); } }
public bool LoadStream(Stream stream) { try { using (var sr = new StreamReader(stream)) { DomLoader.Load(sr, this); sr.Close(); return(true); } } catch { return(false); } }
public bool LoadFile(string filename) { if (File.Exists(filename)) { try { using (var sr = new StreamReader(filename)) { DomLoader.Load(sr, this); sr.Close(); return(true); } } catch { return(false); } } return(false); }