public static string GetXml(ItemEditControlBase control) { string strError = ""; string strXml = ""; int nRet = control.GetData(false, out strXml, out strError); if (nRet == -1) { throw new Exception(strError); } return(strXml); }