-
Notifications
You must be signed in to change notification settings - Fork 35
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
Generated code does not output values #35
Comments
I see that you are in the process of updating the documentation, and that the -f flag code is commented out in in chidley.go, and that there is a slice of xml files in the generated code, so I am assuming that the current version simply doesn't need that flag. It throws an error if I include it of course. Perhaps I'm just doing this wrong and all will become clear when you publish your most recent documentation. |
Hello, I will properly respond to your issue over the weekend. Sorry for the delay. Thanks, |
Hi - I believe this is the same issue that I am currently experiencing. I generated all the data structures with the -G and then I tried with the -W for a standalone, and I do not get node values when the code runs, just empty nodes. |
Hi. I need both to generate values and to supply -f for witch file to convert. Is there any plans for this functionality? |
I am working on a branch to resolve these issues. |
Unfortunately I cannot share the XML due to my companies policy.
Apologies,
Lynch
…On Fri, Nov 9, 2018 at 11:01 AM K. Glen Newton ***@***.***> wrote:
I am working on a branch to resolve these issues.
@lynchdavis <https://github.com/lynchdavis> Could you supply your XML so
I can validate
@NadjaVidnes <https://github.com/NadjaVidnes> Let me look into this. So
you want the generated code to have a '-f' so you can supply the file
needed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#35 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ANUwZ5KM6pJK_3HejgK06WvmBE9wKjQmks5utaa9gaJpZM4W2JJW>
.
|
I noticed that the generated code using string string `xml:",chardata" json:",omitempty"` // note the lower case string as the field name since the field name is lower case they aren't being exported for use in the Marshal/Unmarshalling. I was able to get my stuff working simply by replacing all of the |
The code that is generated with the -W flag does not include the values in the output JSON or XML. I tried this with my XML initially, but then with the examples that you provide. Here is a run of "test1" (minus the -f flag):
The JSON output is similar in that the structure is all there, for the right number of elements, but the values themselves are missing.
The text was updated successfully, but these errors were encountered: