示例#1
0
        public static void Save(SHARCFB.Header header, string FileName)
        {
            XmlDocument doc      = new XmlDocument();
            XmlNode     mainNode = doc.CreateElement("SHARCFB");

            AddAttribute(doc, "Name", header.Name, mainNode);
            doc.AppendChild(mainNode);
        }
示例#2
0
        public static void Read(SHARCFB.Header header, string FileName)
        {
            XmlDocument doc = new XmlDocument();

            doc.Load(FileName);

            foreach (XmlNode node in doc.ChildNodes)
            {
                foreach (XmlNode n in node.ChildNodes)
                {
                    if (n.Name == "ShaderPrograms")
                    {
                    }
                }
            }
        }