XML namespaces not fully supported: alternative to encoding/xml?

Today I stumbled over the need to use multiple namespaces when encoding to a XML document. Coming from Python and lxml I expected an easy way to define a mapish collection of namespaces to use.

I could hardly believe that Go has only very limited support for XML namespaces. The AFAIK most recent GitHub issue that collects other issues is almost two years old:

The milestone for the issue has been pushed from 1.7 up to 1.10 since then. And sadly nobody seems to be working on it.

Do you know any alternative to encoding/xml that supports XML namespaces as lxml in Python does?

There are a few libxml2 wrappers if cgo is acceptable. I’ve not tried any of them though.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.