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

Handling default attribute values #11

Open
ariutta opened this issue Jun 4, 2017 · 1 comment
Open

Handling default attribute values #11

ariutta opened this issue Jun 4, 2017 · 1 comment

Comments

@ariutta
Copy link

ariutta commented Jun 4, 2017

For XML with XSD-specified default values (like this), I'd like the option to tell cxml to fill in the defaults in the parsed JSON output. Right now, if the attribute is not specified in the XML, it won't appear in the JSON output, even if the XSD specifies a default value.

Any suggestions on where to refactor cxml (and maybe cxsd) to implement this?

@jjrv
Copy link
Member

jjrv commented Jul 3, 2017

There's big changes coming to cget / cxml / cxsd and I see you've been working on adding xpath support, which is very useful for the future. Maybe it we could collaborate in Gitter? I set up a room https://gitter.im/charto/cxml for this project.

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