We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The parser accepts inputs that have multiple XML root nodes, without raising an error. This is despite enabling the validator option "-v".
An XML document is expected to have one root element.
<abc/><abc/>
There are two elements at the root level, which I expected to raise an error. The input is saved in a file named example.xml.
example.xml
./src/cli/cli.js -v example.xml
{ abc: [ '', '' ] }
My question is: Why the XML validator doesn't throw an error? Please note that xmllint rejects the input example as invalid.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
The parser accepts inputs that have multiple XML root nodes, without raising an error. This is despite enabling the validator option "-v".
An XML document is expected to have one root element.
Input
There are two elements at the root level, which I expected to raise an error. The input is saved in a file named
example.xml
.Code
Output
My question is: Why the XML validator doesn't throw an error?
Please note that xmllint rejects the input example as invalid.
The text was updated successfully, but these errors were encountered: