예제 #1
0
        /// <summary>
        /// 读xml
        /// </summary>
        public static XML readFileForXML(string path)
        {
            if (!File.Exists(path))
            {
                return(null);
            }

            return(XML.readXMLByString(readFileForUTF(path)));
        }
예제 #2
0
 /// <summary>
 /// 从Resources目录读取xml
 /// </summary>
 public static XML readResourceForXML(string path)
 {
     return(XML.readXMLByString(readResourceForUTF(path)));
 }
예제 #3
0
 /** 获取加载的xml对象 */
 public XML getXML()
 {
     return(XML.readXMLByString(_www.text));
 }