-
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
Create multiple structs instead of merging same-name elements? #19
Comments
Some important differences: Getting back to your question :-) Thanks, |
As you say, a "union" struct is created by Chidley.
Which is what I was saying:
As I'm sure you know, building structs by merging all possible child element names is messy for some XML which re-uses the same element name repeatedly in different contexts. Is there a way to turn off "union" mode and instead create multiple structs named by something like element path? For example:
|
Right now Chidley merges all the child elements / attributes of each tag into a struct of the same name. Is there a way to tell it to keep separate XML elements instead of appending all the keys into a single master struct named the shared element name?
Creates a struct that looks like this:
Instead of multiple structs
The text was updated successfully, but these errors were encountered: