public void ReadFile_SCXmlFile()
        {
            string filename = $@"{userHome}\OneDrive\ResourceFiles\SC\asteroid_hangar_landingpad_medium.xmla";

            XmlDocument xml = CryXmlSerializer.ReadFile(filename, true);
            //TODO:  Complete this
        }
Пример #2
0
        /// <summary>
        /// Open xml and CryXml file.
        /// </summary>
        /// <param name="uri"></param>
        /// <returns></returns>
        public static XDocument Load(string uri)
        {
            XDocument xDoc = new XDocument();

            System.Xml.XmlDocument xmlDoc = CryXmlSerializer.ReadFile(uri);

            if (xmlDoc != null)
            {
                string     xmlString = xmlDoc.InnerXml;
                TextReader tr        = new StringReader(xmlString);
                xDoc = XDocument.Load(tr);
            }
            else
            {
                xDoc = XDocument.Load(uri);
            }

            return(xDoc);
        }
        public void ReadFile_SCXmlFile()
        {
            string filename = "C:\\Users\\Geoff\\Source\\Repos\\Cryengine Importer\\io_cryengine_importer\\CryXmlB\\asteroid_hangar_landingpad_medium.xmla";

            XmlDocument xml = CryXmlSerializer.ReadFile(filename, true);
        }