Was working on generating DDEX XML today and realized that the generated code for 3.8 and 3.8.1 had a ns1 namespace prepended to the element tag names, i.e.:
This results in XML with double namespaces when you use DDEX.write which then fails to parse if you try to read it externally (at least in WebKit). This fix removes the extra ns1 namespace from all the generated classes.
I'm not sure what actually caused the problem: whether it is in the jaxb2xml library, or a dependency, or maybe just need to pass additional arguments when generating the code? I thought I'd add the fix before digging though in case you had an idea what caused the issue.
Was working on generating DDEX XML today and realized that the generated code for 3.8 and 3.8.1 had a
ns1
namespace prepended to the element tag names, i.e.:https://github.com/sshaw/ddex/blob/v0.0.3/lib/ddex/ern/v381/new_release_message.rb#L29
This results in XML with double namespaces when you use
DDEX.write
which then fails to parse if you try to read it externally (at least in WebKit). This fix removes the extrans1
namespace from all the generated classes.I'm not sure what actually caused the problem: whether it is in the jaxb2xml library, or a dependency, or maybe just need to pass additional arguments when generating the code? I thought I'd add the fix before digging though in case you had an idea what caused the issue.