Skip to content

validate function does not work properly #93

@mucahiddayan

Description

@mucahiddayan

Checklist

  • Are you running the latest version?
  • Have you included sample input, output, error, and expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?

Input

xsltFromMozilla can be found here: https://developer.mozilla.org/en-US/docs/Web/XSLT/XSLT_JS_interface_in_Gecko/Basic_Example

Code

import validate from 'fast-xml-parser';
if(validate(xsltFromMozilla) !== true){
     //do something
};

Output

// returns {
err:{
msg: 'Invalid char A'
}
}

expected data

true
Would you like to work on this issue?

  • Yes
  • No

Bookmark this repository for further updates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions