Namespace missing when embedding a parsed XML document in another document with @XmlAnyElement
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.