You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this fails because it treats all its children with the same ns2 namespace. Since the children elements have no namespace, they are all ignored.
@ronaldtse I have a question related to namespace behavior. If we explicitly set the namespace of the child to nil in a parent mapping will that be forwarded to all the child mappings as well? i.e
What will be the namespace for the Subject class if we have the following classes? We are explicitly passing namespace: nil to Core in Extract mappings, will the namespace for the Subject class also be nil?
From:
The default Termium XML output looks like this:
Here, the
termium_extract
element has a namespace marked asns2
, but its children have no namespaces.Technically, it should be parsed like this:
However, this fails because it treats all its children with the same
ns2
namespace. Since the children elements have no namespace, they are all ignored.Instead, this would work:
Which is treating the element itself with no namespace, and the children have no namespace. This generates proper XML.
This is a bug in lutaml-model.
This can be found reproducible in the PR:
The text was updated successfully, but these errors were encountered: