using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Xml;
using System.IO;
using System.Xml;
using System;
public class LoadXml : MonoBehaviour
{
public static LoadXml instance;
/// <summary>
/// XML文件
/// </summary>
XmlDocument doc;
List<string> allName = new List<string>();
public List<XmlElement> xmlElements = new List<XmlElement>();
string xmlURL;
string streamingPath;
/// <summary>
/// 存储xml信息的链表
/// </summary>
public List<DataMain> data_list = new List<DataMain>();
private void Awake()
{
}
// Start is called before the first frame update
void Start()
{
instance = this;
//streamingPath = Application.streamingAssetsPath;
//安卓打包
xmlURL = Application.persistentDataPath + "/StreamingAssets/Code.xml";
//pc端运行
//xmlURL = Application.streamingAssetsPath + "/Code.xml";
doc = new XmlDoc