Namespace missing when embedding a parsed XML document in another document with @XmlAnyElement

Solution In Progress - Updated -

Issue

  • an Element object with a @XmlAnyElement field loses all the element’s prefixes after the marshall operation and has an empty default namespace (xmlns="").
  • Parsed XML document is missing namespaces

Environment

  • JAXP parsing of XML document

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content