You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I switch to mxj.NewMapXml it does work; but order isn't retained.
The panic is happening in the Less function because the TextValue isn't a map interface.
Attaching a debugger screenshot before the panic & snippet from the stack here as well:
An element type has mixed content when elements of that type may contain character data, optionally interspersed with child elements.]
I'm also not very familiar with xml standard; so if that is referencing something else just let me know. I couldn't find anything else related to mixed contents
Hello, I'm trying to parse an XML:
This parses fine; however, when attempting to convert the parsed struct back into an XML string using
mxj.NewMapXmlSeq
, I encounter a panic.This is example reproduction:
If I switch to
mxj.NewMapXml
it does work; but order isn't retained.The panic is happening in the
Less
function because theTextValue
isn't a map interface.Attaching a debugger screenshot before the panic & snippet from the stack here as well:
Do you think this is a scenario this library could account for, or should users handle this?
Thank you for any guidance
The text was updated successfully, but these errors were encountered: