Answer the question
In order to leave comments, you need to log in
How to deal with xml prefixes in GO?
Good afternoon. By a difficult fate, I am forced to implement the xml protocol. And I ran into such an unpleasant problem: after describing all the structures, they perfectly generate xml, but they cannot do their own generated xml Unmarshal, they give an error:
expected element type <ns:invoicing> but have <invoicing>
I found that this is a language bug , but perhaps there is some simple life-hack to get out of this situation? Playground
Answer the question
In order to leave comments, you need to log in
maybe there is some simple trick
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question