public object FromXml(string xml, Type type) { try { return SerializationUtils.DeSerializeObject(xml, type); } catch (Exception ex) { SetError(ex, true); return null; } }