public static Equipment LoadEquipmentFromXml(XmlElement node) { string name = node.GetAttribute("name"); Characteristics ch = LoadCharacteristicsFromXml((XmlElement)node.GetElementsByTagName("Characteristics")[0]); string[] b = LoadBodyFromXML((XmlElement)node.GetElementsByTagName("Body")[0]); Equipment e = new Equipment(name, ch, b); string script = node.GetAttribute("script"); if(script != "") e.SetScript(script); try { string symbol = node.GetAttribute("symbol"); e.SetSymbol(symbol); } catch {} return e; }