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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
