Skip to content
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

XMLParser ignores spec in type check #646

Closed
rbouckaert opened this issue Dec 12, 2016 · 0 comments
Closed

XMLParser ignores spec in type check #646

rbouckaert opened this issue Dec 12, 2016 · 0 comments

Comments

@rbouckaert
Copy link
Member

If an XML element is referred before its declaration in the file, and the element has a reserved name (like parameter, tree) and the element has a spec attribute, the object is created at the time the idref is parsed. At the time the element's parent is parsed, the type is derived from the element name, and the spec attribute is ignored. This leads to a (supposedly helpful) type-check failing, and the XML parser throwing an exception, while there is nothing wrong.
To fix this, the spec element (if present) should not be ignored at the time the element is parsed at the point the its parent is parsed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant