Re: [go-nuts] xml to json, parsing xml

2024-04-23 Thread Don Caldwell
still require, I think, another pass to fix up the go structure unless someone applies a priori knowledge of the xml structure when building it. D D D On Tue, Apr 23, 2024 at 1:18 PM Don Caldwell wrote: > I agree. The link that I sent demonstrates one very simple way. Mapping &g

Re: [go-nuts] xml to json, parsing xml

2024-04-23 Thread Don Caldwell
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 want to work with XML, either use xml marshaling, or find a > third-party DOM library. > > On T

[go-nuts] Re: xml to json, parsing xml

2024-04-23 Thread Don Caldwell
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