In general, you cannot convert xml to json. They have incompatible
models. XML elements are ordered similar to a JSON array, but in many
cases you want to map XML elements to JSON objects, which are
unordered name-value collections. Also, there is no JSON equivalent of
an XML attribute.
If you wan
Disclaimer - I am very new to golang.
I puzzled about this for a few days. After some struggle, I got a little
program working that parses
arbitrary xml into a structure that json can understand. You can find it
here:
https://github.com/dfwcnj/gxmldecode
On Thursday, October 7, 2021 at 10:06:30