You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parser accepts and parses a XML element that is syntactically invalid, without raising an error. This is despite enabling the validator option "-v".
Input
<?xml version="1.0" ?> <a/> <! <!---->
In the above example, token <! is duplicated, which I expected to raise an error. The input is saved in a file named example.xml.
Code
./src/cli/cli.js -v example.xml
Output
{ '?xml': { '@_version': 1 }, a: '', '!': '' }
My question is: Why the XML validator doesn't throw an error in this case?
Please note that xmllint rejects the input example as invalid.
The text was updated successfully, but these errors were encountered:
Description
The parser accepts and parses a XML element that is syntactically invalid, without raising an error. This is despite enabling the validator option "-v".
Input
In the above example, token
<!
is duplicated, which I expected to raise an error. The input is saved in a file namedexample.xml
.Code
Output
My question is: Why the XML validator doesn't throw an error in this case?
Please note that xmllint rejects the input example as invalid.
The text was updated successfully, but these errors were encountered: