I am using golang xml to Marshal/Unmarshal it. I want to input and output after Marshal same.
Here is my example :
https://play.golang.org/p/KH6mFXLVdH
xml input has tag name with namespace, ex: x14:dataValidation
after Marshal data that Unmarshal from input xml, i want tag name same it.
Have any solutions?
Thanks
The last project I worked on which used XML heavily ran into the same problem. As @algrebe mentioned, it seems to be an outstanding issue in the Go standard library's XML implementation. There are other XML libraries out there which you can use that do support namespaces. I've had pretty good success with https://github.com/beevik/etree.