-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
Namespace validation is not done #265
Comments
Yes, I hope it'll not be tuff to implement. In validator.js, when we extract attributes name to validate them, we can extract NS to some object. fast-xml-parser/src/validator.js Line 80 in 0f1443a
We're already stacking tagName. Instead, we can stack a small object which will contain tagName and NS array attached with that tag. fast-xml-parser/src/validator.js Line 129 in 0f1443a
Now when we're popping the tagName to verify the closing tag, we can remove those NS from the NS object that we created in starting. fast-xml-parser/src/validator.js Line 106 in 0f1443a
Validation fast-xml-parser/src/validator.js Line 129 in 0f1443a
fast-xml-parser/src/validator.js Line 298 in 0f1443a
|
Added a PR for this: #275 |
Description
Input
Code
Expected behavior
I would expect to see an error telling that the "pic" namespace was not defined in the document.
This is what is shown when using : https://xmlvalidation.com/
Would you like to work on this issue?
The text was updated successfully, but these errors were encountered: