public static void LoadShipSectionFromXmlForTools(string filename, ref ShipSection ss) { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.Load(filename); ss.LoadFromXmlNode(xmlDocument["ShipSection"]); }
public static void LoadShipSectionFromXml(string filename, ref ShipSection ss) { XmlDocument document = new XmlDocument(); document.Load(ScriptHost.FileSystem, filename); ss.LoadFromXmlNode(document["ShipSection"]); }
public static void SaveShipSectionToXmlForTools(string filename, ShipSection ss) { XmlDocument xmlDocument = new XmlDocument(); XmlElement element = xmlDocument.CreateElement("ShipSection"); ss.AttachToXmlNode(ref element); xmlDocument.AppendChild((XmlNode)element); xmlDocument.Save(filename); }