/// <summary> /// Check the CSDB object against a BREX data module XML file. /// </summary> /// <param name="path">The path to the BREX file</param> /// <returns> /// An XML report of the results of the BREX check /// </returns> public XmlDocument CheckAgainstBREX(string path) { CsdbObject brex = new CsdbObject(path); BrexCheckOptions options = new BrexCheckOptions(); return(CheckAgainstBREX(brex, options)); }
unsafe private CsdbObject FilterImpl(Applicability app, FilterMode mode) { string objectXml = doc.OuterXml; string resultXml; int size; int err = s1kdFilter(objectXml, objectXml.Length, app.InternalDefs, mode, out resultXml, out size); if (err != 0) { throw new Exception("Filtering failed (" + err + ")"); } CsdbObject result = new CsdbObject(); result.XmlDocument.LoadXml(resultXml); return(result); }
/// <summary> /// Check the CSDB object against a specified BREX data module. /// </summary> /// <param name="brex">The BREX data module to check against</param> /// <returns> /// An XML report of the results of the BREX check /// </returns> public XmlDocument CheckAgainstBREX(CsdbObject brex) { BrexCheckOptions options = new BrexCheckOptions(); return(CheckAgainstBREXImpl(brex.XmlDocument, options)); }
/// <summary> /// Check the CSDB object against a specified BREX data module. /// </summary> /// <param name="brex">The BREX data module to check against</para> /// <param name="options">BREX check options</param> /// <returns> /// An XML report of the results of the BREX check /// </returns> public XmlDocument CheckAgainstBREX(CsdbObject brex, BrexCheckOptions options) { return(CheckAgainstBREXImpl(brex.XmlDocument, options)); }