/// <summary> /// Xml �� �о�´� /// </summary> /// <param name="path"></param> /// <returns></returns> public static SnapModel ReadXml(string path) { SnapXml _snapXml = new SnapXml(); XmlTextReader reader = new XmlTextReader( path ); _snapXml.ReadSnapXml( _snapXml._snapModel, reader ); reader.Close(); return _snapXml._snapModel; }
/// <summary> /// Xml 을 읽어온다 /// </summary> /// <param name="path"></param> /// <returns></returns> public static SnapModel ReadXml(string path) { SnapXml _snapXml = new SnapXml(); XmlTextReader reader = new XmlTextReader(path); _snapXml.ReadSnapXml(_snapXml._snapModel, reader); reader.Close(); return(_snapXml._snapModel); }
public void Init() { string path = Utility.GetAbsolutePath(UmcConfiguration.Core["SnapXmlPath"]); _snapModel = SnapXml.ReadXml(path); }