-
Notifications
You must be signed in to change notification settings - Fork 117
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
Unable to unmarshal embedded xhtml #116
Comments
Some more info: These are the generated structs from the schema.
|
Thanks for the report. The
I'm not sure why that's not happening. My guess is that the SOAPArrayAsSlice pass is accidentally removing the mixed content model. What happens if you don't include this optimization? You can see the "Customizing the behavior of xsdgen" section of https://blog.aqwari.net/xml-schema-go/ for instructions on how to choose what optimizations are included. If that's the issue, we could add a check to this optimization for a mixed content model. |
hi @droyo – So I gave that a try. This was my generator program:
But the result I got for
With no corresponding Is this expected? What could I look into next? Let me know if there's anything else I can try here. |
hi! – first off, thanks for the amazing software. It really does help a lot!
I just had a quick question about an XML I was trying to unmarshal using the generated structs.
Most of the document gets parsed just fine expect the embedded XHTML elements. One example would be something like the following:
In this case the output after the unmarshal is only the items with the
<p>
tag. The items with<ol>
,<li>
don't show up.Here's the schema if it would help: https://cwe.mitre.org/data/xsd/cwe_schema_latest.xsd
Let me know if you need anything in terms of information or if you'd like me to try something. If you could point out the relevant code that is involved in generating this I'd be happy to look through and submit a PR if I managed to solve it.
The text was updated successfully, but these errors were encountered: