CZ-NIC/yangson

namespace missing in exception messages for XML documents

Opened this issue · 1 comments

[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.

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...