jaxb
  1. jaxb
  2. JAXB-935

Marshaller adds xmlns:xmlns attribute

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.6
    • Fix Version/s: None
    • Component/s: runtime
    • Labels:
      None
    • Environment:

      Win7 64

      Description

      When namespace is added through wildcard attributes:

      @XmlAnyAttribute
      Map<QName, String> getExtensionAttributes()

      JAXB Marshaller also adds "http://www.w3.org/2000/xmlns/" namespace resulting invalid XML

      The problem is in
      com.sun.xml.bind.v2.runtime.output.NamespaceContextImpl class where "http://www.w3.org/2000/xmlns/" must be also predefined.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Iaroslav Savytskyi
            Reporter:
            ratoo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: