DataSet ds = Api.DataSetFromXmlString(…);
if (ds != null)
    dt = ds.Tables[0];