var saxon = require('saxonXslt');

saxon.SchemaValidator.prototype.registerSchemaFromFile(xsdFilePath);

Loads schema for subsequent validations.

  • xsdFilePath → the path to the schema document
  • return ← void

saxon.SchemaValidator.prototype.validate(xmlFilePath);

Loads executes a query.

  • xmlFilePath → the path to the xml document
  • return ← void

saxon.SchemaValidator.prototype.validateToNode(xmlFilePath);

Loads executes a query.

  • xmlFilePath → the path to the xml document
  • return ← void

saxon.SchemaValidator.prototype.getValidationReport();

get report.

  • return ← a node::Buffer with the results