public static Item LoadItemFromXml(XmlElement node) { string name = node.GetAttribute("name"); Item i = new Item(name); string script = node.GetAttribute("script"); if(script != "") i.SetScript(script); try { string symbol = node.GetAttribute("symbol"); i.SetSymbol(symbol); } catch {} return i; }