Skip to content

XML parsing fails #67

@Waitak

Description

@Waitak

XML parsing doesn't work at all. The struct tags for XML are all of the form

`xml:"tag"`

but the values are taken from the "value" attribute. The problem is that it is not possible to specify that the value for an element is taken from an attribute of the same element. It is only possible to specify that the value of a field of the element is taken from an attribute. As a result, the struct tags don't correspond to the XML format, and parsing fails. See this Stackoverflow discussion for details.

The solution seems to be to implement a custom unmarshaller/marshaller for XML that is aware of this usage of the "value" attribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions