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

Can RXSD generate schema-complaint XML? #16

Open
mikegee opened this issue Jul 17, 2014 · 2 comments
Open

Can RXSD generate schema-complaint XML? #16

mikegee opened this issue Jul 17, 2014 · 2 comments

Comments

@mikegee
Copy link
Contributor

mikegee commented Jul 17, 2014

If I parse an XSD into Ruby classes and create instances of those classes. Do those instances know how to serialize themselves into XML that is guaranteed to validate against the XSD?

I don't see an example of this use case in the readme or from a cursory scan of the implementation.

@movitto
Copy link
Owner

movitto commented Aug 3, 2014

@mikegee hey it's been a while but do recall that as it stands rxsd will only allow you to go from xml/xsd -> ruby and not the other way. The reverse is still on the TODO list but as mentioned in #14 I probably won't have any time to dedicate to improving RXSD in the forseeable future. If you have any more questions or would like to add anymore enhancements though, I'd be glad to help.

Thanks for reaching out,
-Mo

@mikegee
Copy link
Contributor Author

mikegee commented Aug 3, 2014

@movitto no worries. We ended up writing a bunch of classes with HappyMapper. It's kinda tedious, and HappyMapper doesn't know about the xsd, so we have to validate everything we generate, but it's DSL is very straightforward. I'm thinking about a new tool (or a big change to rsxd) that just reads an xsd and makes HappyMapper classes. Unfortunately, I don't know xsds very well, so that would be a significant undertaking.

Thanks for your work on rsxd and for answering my question.

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