Open
Description
by opennota:
The Encoder will add namespaced to the elements, even if there are the same namespaces in the parent element: http://play.golang.org/p/LDRJCxUJHX // Output: // <p xmlns="http://www.gribuser.ru/xml/fictionbook/2.0"; xmlns:l="http://www.w3.org/1999/xlink";><a xmlns="http://www.gribuser.ru/xml/fictionbook/2.0"; xmlns:xlink="http://www.w3.org/1999/xlink"; xlink:href="http://google.com";>google.com</a></p> I expect it to not repeat the namespaces: // <p xmlns="http://www.gribuser.ru/xml/fictionbook/2.0"; xmlns:l="http://www.w3.org/1999/xlink";><a l:href="http://google.com";>google.com</a></p>