protected override void OnSaveValue() { XmlNode nd = XmlData.SelectSingleNode(string.Format(System.Globalization.CultureInfo.InvariantCulture, "{0}[@name='ObjectType']", XmlTags.XML_PROPERTY)); if (nd == null) { nd = XmlData.OwnerDocument.CreateElement(XmlTags.XML_PROPERTY); XmlData.AppendChild(nd); XmlUtil.SetNameAttribute(nd, "ObjectType"); } XmlNode tpNode = XmlUtil.CreateSingleNewElement(nd, XmlTags.XML_LIBTYPE); XmlUtil.SetLibTypeAttribute(tpNode, ObjectType); }