-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
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
Invalid XML declarations allowed #641
Labels
Comments
I think, this is by desing, but we can have a setting to enforce checks, and definitely should have this checks for serde deserializer |
It would also be useful to have a Reader/NSReader capable of enforcing such a thing for when I know there is only one document in a file/str source. |
Yeah, I say exactly this -- add a setting to enforce this behavior |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The parser allows XML declarations anywhere in the file. If a declaration exists it should be at the very beginning of the file.
Also, only one declaration should be allowed.
Both of these constraints are not currently enforced.
More info on the validity of xml declarations is here.
The text was updated successfully, but these errors were encountered: