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

Problem with XSD files #1

Open
fwachs opened this issue Sep 15, 2014 · 3 comments
Open

Problem with XSD files #1

fwachs opened this issue Sep 15, 2014 · 3 comments

Comments

@fwachs
Copy link

fwachs commented Sep 15, 2014

Hi, I'm trying to use this library to generate go structs and I'm getting multiple errors. I've tried modifying the java source code and generating a new Jar file to deal with the problems i'm getting. But so far I had no luck in generating all of the go expected structs. Would it be too much to ask for you to check this out?
Thanks!

https://s3.amazonaws.com/cda-xsd/CDA.xsd ( this is the parent )
https://s3.amazonaws.com/cda-xsd/NarrativeBlock.xsd
https://s3.amazonaws.com/cda-xsd/POCD_MT000040.xsd
https://s3.amazonaws.com/cda-xsd/datatypes-base.xsd
https://s3.amazonaws.com/cda-xsd/datatypes.xsd
https://s3.amazonaws.com/cda-xsd/infrastructureRoot.xsd
https://s3.amazonaws.com/cda-xsd/voc.xsd

@csimplestring
Copy link
Owner

Hi, I check your xsd file. This project now can only parse limited set of Jaxb annotation. After generating java class by using xjc, your class contains following annotations which are not supported now:

  • @XmlMixed
  • @XmlSchemaType

I will work on this issue.

@fwachs
Copy link
Author

fwachs commented Sep 15, 2014

Really? Thanks a lot, is there anything I could do to help you with it? I'm not quite sure what it's needed to be done but i'm willing to help all I can :)
Great work with the library.

@fwachs
Copy link
Author

fwachs commented Sep 18, 2014

Besides what you say, about those two annotations not being supported, there is also a problem with translating Enums. I see, on the code, that they are being filtered for some reason, but this leads to structs pointing to non-existing structs afterwards. How is this supposed to work later?

Also, i've made some modifications on my branch that can help out with the translation tool. Should I send a pull request?

And last but not least, i'm using https://raw.githubusercontent.com/chb/sample_ccdas/master/HL7%20Samples/CCD.sample.xml to test if the structs are working fine but i'm getting: panic: reflect.Value.SetBytes of non-byte slice. Any ideas?

I really appreciate your help on this one. Please let me know how I can be of any help :)

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