node-xsd-schema-validator
node-xsd-schema-validator copied to clipboard
WITH_ERRORS result
hey. i try to use your validator, but for each test i always get the same response : { valid: false, result: 'WITH_ERRORS', messages: [] } even if the xml is valid (I test on several online xml validator).
var xmlStr = ''; validator.validateXML(xmlStr , schemaPath , function(err, result) { console.log(result); if (err) { throw err; } result.valid; // true }); author nothing
this is the shema content (replacing "()" by "<>"):
(xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema")(xs:element name="comment")(xs:complexType)(xs:all)(xs:element name="author" type="xs:string"/)(xs:element name="content" type="xs:string"/)(/xs:all)(/xs:complexType)(/xs:element)(/xs:schema)
Same issue when I'm using examples into validatorSpec with BPMN20.xsd...
What is your java / nodejs runtime / operating system version?
Does the test suite (grunt test) pass for you?