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

Normalize xsi:type attributes #4

Closed
nikku opened this issue Nov 7, 2017 · 0 comments
Closed

Normalize xsi:type attributes #4

nikku opened this issue Nov 7, 2017 · 0 comments

Comments

@nikku
Copy link
Owner

nikku commented Nov 7, 2017

XSI type attributes contain namespaced information; normalize the attribute values accordingly.

<foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns="http://foo"
     xsi:type="bar" />

With the following namespace configuration:

parser.ns({
  'http://foo': 'FOO'
});

... the parser should normalize attrs to { 'xsi:type': 'FOO:bar', ... }.

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

No branches or pull requests

1 participant