Skip to content

encoding/xml: XML namespace prefixes not fully supported #6800

@gopherbot

Description

@gopherbot

by anthonyeden:

It is possible to create a prefix on elements by simply defining the prefix as part of
the name in the XMLName declaration, but the xmlns attribute is output without the
prefix. Example: http://play.golang.org/p/KeIHB4_z5L

Thus it would seem that the encoding/xml package can only deal with document-level
namespaces, not nested namespaces, is this correct?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions