K
K
krotlinman2020-09-15 03:16:01
go
krotlinman, 2020-09-15 03:16:01

Parsing XML golang, what's the problem?

what could be the problem?
looked at the guides that you need to create structures for each global tag. and in this structure "fall through" to lower levels, but the output is completely different from what I need. I need the content of the attributes of the row tag in json format. what did I do wrong? do not hit with slippers, newbie in go.
https://play.golang.org/p/CC_4JgS06ze

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
evgensoft, 2020-09-24
@evgensoft

service for generating GO structures from XML - https://www.onlinetool.io/xmltogo/
similar service for JSON - https://mholt.github.io/json-to-go/
Very convenient to quickly convert structures and then fix them little things if needed..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question