cxml icon indicating copy to clipboard operation
cxml copied to clipboard

Handling default attribute values

Open ariutta opened this issue 8 years ago • 1 comments

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?

ariutta avatar Jun 04 '17 01:06 ariutta

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.

jjrv avatar Jul 03 '17 21:07 jjrv