Skip to content

Allow non-strict equality check to work on xml validate #762

@daraghhiggins12

Description

@daraghhiggins12

When using XMLValidator.validate you must use strict equality check to confirm if the XML is valid or not.
Example: XMLValidator.validate(<some_xml>) === true

If some xml is invalid and without the use of a strict equality check the result is always true
Example: XMLValidator.validate(<some_invalid_xml>) returns an error object meaning a non-strict check will always equate to true

A cleaner more readable usage would be to return an object with an isValid member that is either true or false.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions