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

Declaring a namespace/prefix mapping with the prefix '' generates xmlns:xmlns #62

Closed
ximex opened this issue Mar 24, 2015 · 6 comments
Closed
Assignees
Labels
Milestone

Comments

@ximex
Copy link

ximex commented Mar 24, 2015

It isn't possible to define a namespace without a prefix.

namespacePrefixes: {
  'http://ris.bka.gv.at/Search/1.3/OGD': '',
  'http://www.w3.org/2001/XMLSchema-instance': 'xsi'
}

It adds
xmlns:xmlns="http://ris.bka.gv.at/Search/1.3/OGD"
but it should be only
xmlns="http://ris.bka.gv.at/Search/1.3/OGD"

ximex/ris-bka#4

@highsource
Copy link
Owner

To help it get resolved faster, could you please PR a test case here:

https://github.com/highsource/jsonix/blob/master/nodejs/tests/basic/tests/xmlns.js

@highsource highsource added the bug label Mar 24, 2015
@highsource highsource added this to the 2.1.4 milestone Mar 24, 2015
@highsource highsource self-assigned this Mar 24, 2015
highsource added a commit that referenced this issue Mar 24, 2015
@highsource
Copy link
Owner

@highsource highsource changed the title NameSpace without Prefix Declaring a namespace/prefix mapping with the prefix '' generates xmlns:xmlns Mar 24, 2015
@highsource
Copy link
Owner

@ximex Should be fixed now, please check the latest scripts:

https://github.com/highsource/jsonix/tree/master/dist

@ximex
Copy link
Author

ximex commented Mar 25, 2015

@highsource it works. could you do a npm release or do you wait to fix the other bugs?

@highsource
Copy link
Owner

@ximex
Copy link
Author

ximex commented Mar 25, 2015

thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants