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); }
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") { } } } }