My Oracle Support Banner

Failed to Remove XML Header After Enabling JDK JAXB Provider on WebLogic (Doc ID 2698377.1)

Last updated on SEPTEMBER 07, 2021

Applies to:

Oracle WebLogic Server - Version and later
Information in this document applies to any platform.


 Application use below method to remove default XML header on WebLogic 11g with JDK JAXB provider.  But same code  can't work after migrating to WebLogic with JDK JAXB provider.

Marshaller.setProperty("com.sun.xml.bind.xmlDeclaration", Boolean.FALSE);


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.