I'm trying to validate some input xml on the fly in a React app using fast-xml-parser. I'm just using the out-of-box default options, and when I try <test></test
it comes back as valid.
Here I'm outputting the text I'm running through parser.validate()
as well as its return value to the console:
I tried it in their online tool as well:
Not to be rude, but am I missing a "do the right and obvious thing" switch in the options or something? I'm asking because I want to post an issue, and asking Stackoverflow first is a requirement.