读取XML ,IOS、Android、PC
来源:互联网 发布:巨杉数据库笔试 编辑:程序博客网 时间:2024/04/28 03:39
XmlDocument xmlDoc = new XmlDocument(); TextAsset textAsset = (TextAsset) Resources.Load("tips", typeof (TextAsset)); xmlDoc.LoadXml(textAsset.text); XmlNodeList node = xmlDoc.SelectSingleNode("plist").ChildNodes; foreach (XmlElement nodeList in node) { foreach (XmlElement xe in nodeList) { if (xe.Name == "array") { int i = 0; _tips = new string[xe.ChildNodes.Count]; foreach (XmlElement xe1 in xe.ChildNodes) { _tips[i] = xe1.InnerText; i++; } break; } } // } }
用此种方法!
XmlDocument xmlDoc = new XmlDocument(); TextAsset textAsset = (TextAsset) Resources.Load("tips", typeof (TextAsset)); xmlDoc.LoadXml(textAsset.text);
0 0
- 读取XML ,IOS、Android、PC
- Unity Android及PC 外部Xml读取
- unity PC和android不同平台读取xml文件比较
- unity3d ios android pc path
- Android读取XML资源
- android读取xml
- Android读取XML文件
- Android 读取xml资源
- android 读取xml
- android读取xml
- Android读取XML资源
- android中xml读取
- Unity下安卓,Ios,PC平台下的路径读取
- ios,android读取文件
- Unity播放视频(pc,android,ios)
- Unity播放视频(pc,android,ios) 。。整理。。
- Unity播放视频(pc,android,ios)
- js复制兼容android,ios,pc
- Linux下Watchdog
- java(或C++)继承、重载、覆盖、多态
- 数据结构--线索二叉树
- [转] error C2471: 无法更新程序数据库 vc90.pdb
- UML建模之时序图(Sequence Diagram)
- 读取XML ,IOS、Android、PC
- (error) LOADING Redis is loading the dataset in memory问题解决
- 关于命名空间的理解---iostream与iostream.h的区别
- c#应用传递的理解
- 如何在C++中动态建立二维数组
- C#使用DataTime类
- 在java开发中date()与canlendar()的详解
- java学习笔记(2)
- 的飒飒规范化广泛交换看法规定