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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.