//load đoạn xml từ chỗ <object>... public override void loadfromXML(string strXML, string path) { XmlDocument xml = new XmlDocument(); xml.LoadXml(strXML); Attributs.setLocation(new Point(int.Parse(xml.SelectSingleNode("//x").InnerText), int.Parse(xml.SelectSingleNode("//y").InnerText))); Attributs.setSize(new Size(int.Parse(xml.SelectSingleNode("//width").InnerText), int.Parse(xml.SelectSingleNode("//height").InnerText))); Attributs.setInstanceName(xml.SelectSingleNode("//name").InnerText); }