Skip to content

Namespace repairing generates xmlns definitions for xml: prefix (which is implicit) #395

@mvysny

Description

@mvysny

Saving this class:

data class StdTitle(@field:JacksonXmlProperty(isAttribute = true, namespace = "http://www.w3.org/XML/1998/namespace", localName = "lang") var lang: String = "")

will produce the following XML when namespace repairing is true:

<StdTitle xmlns:wstxns1="http://www.w3.org/XML/1998/namespace" wstxns1:lang="en"/>

However, the xml: prefix and the http://www.w3.org/XML/1998/namespace namespace is implicitly defined on all XMLs and there is no need to generate xmlns for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions