Skip to content

Handling default attribute values #11

Open

Description

@ariutta

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?

Activity

  1. jjrv commented on Jul 3, 2017

    @jjrv
    Member

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions