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

namespace missing in exception messages for XML documents #77

Open
kwatsen opened this issue Dec 15, 2020 · 1 comment
Open

namespace missing in exception messages for XML documents #77

kwatsen opened this issue Dec 15, 2020 · 1 comment

Comments

@kwatsen
Copy link
Contributor

kwatsen commented Dec 15, 2020

[This is happening in my fork. I haven't tested against yangson/master yet]

The path provided in an error message from SchemaNode.from_raw() with an input document that has an unexpected leaf node:

    /ietf-sztp-bootstrap-server:input/foo-bar

The path provided in an error message from SchemaNode.from_xml() with an input document that has an unexpected leaf node:

    /input/foo-bar

The XML code should provide the namespaces in the same way. This may be related to the more general issue about how the XML code is inconsistent with how namespaces are represented in the ET structures: sometimes the namespace is in the attrib and sometime it's mangled into the tag.

@kwatsen kwatsen mentioned this issue Feb 11, 2021
@kwatsen
Copy link
Contributor Author

kwatsen commented Mar 13, 2021

In case there's any question, this is still an open issue.

My project has a unit test that accommodates the unexpected exception message. I'll know this issue is fixed when that unit test starts failing...

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