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

Remove extra 'ns1' namespace from the beginning of every XML element name (ERN 3.8 and 3.8.1) #10

Merged
merged 1 commit into from
Mar 24, 2016

Conversation

benalavi
Copy link
Contributor

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

@sshaw sshaw merged commit 787bd04 into sshaw:master Mar 24, 2016
@sshaw
Copy link
Owner

sshaw commented Mar 24, 2016

May be a jabx2ruby issue. What version of Java and JRuby did you run it under?

@sshaw
Copy link
Owner

sshaw commented Mar 24, 2016

Also, would you care to write a test that or two that checks DDEX.write's output :neckbeard:?

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

Successfully merging this pull request may close these issues.

2 participants