public void loadData() { CAMERAMOVEDATALIST.Clear(); XmlDocument cameraData = new XmlDocument(); cameraData.LoadXml(Resources.Load(CAMERAMOVEDATA_PATH).ToString()); XmlNodeList nodeList = cameraData.GetElementsByTagName("CameraPath")[0].ChildNodes; foreach (XmlElement xe in nodeList) { CameraMoveData data = new CameraMoveData(); data.decode(xe); CAMERAMOVEDATALIST.Add(Convert.ToInt32(xe.GetAttribute("id")), data); } }