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

elements-to-maps-017 #191

Open
ChristianGruen opened this issue Dec 17, 2024 · 0 comments
Open

elements-to-maps-017 #191

ChristianGruen opened this issue Dec 17, 2024 · 0 comments
Assignees

Comments

@ChristianGruen
Copy link
Contributor

The test case elements-to-maps-017

elements-to-maps(parse-xml(
  '<a xmlns="http://a.com/" 
      xsi:type="xs:integer"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xs="http://www.w3.org/2001/XMLSchema">2</a>')/*)

…expects:

{ "Q{http://a.com/}a": { "#content": "2" } }

Are xsi attributes to be ignored? If so, I would expect:

{ "Q{http://a.com/}a": "2" }

Otherwise, I would expect:

{ "Q{http://a.com/}a": { "@Q{http://www.w3.org/2001/XMLSchema-instance}type": "xs:integer", "#content": "2" } }
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

No branches or pull requests

2 participants