Skip to content

encoding/xml: namespaced and non-namespaced attributes conflict #11724

Closed
@ainar-g

Description

@ainar-g

Go versions:

go version devel +2e4b659 Wed Jul 15 06:04:51 2015 +0000 linux/amd64

go version go1.4.2 linux/amd64

Code: http://play.golang.org/p/S2LU2vfk4i.

Expected: no error and main.Discount{XSIType:"ProgressivePromotion", Type:"Percent", From:"2015-07-28T00:00:00", To:"2015-07-30T00:00:00"}

Got: error: main.Discount field "XSIType" with tag "xsi type,attr" conflicts with field "Type" with tag "type,attr"

Found by Eugene Toropov at golang-ru. May be related to #3703.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions