Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JAXB marshaller in 10.1.3 -- want to remove XML Declaration <?xml ...>

Tim Rafert-OracleJun 16 2009 — edited May 1 2010
Using JAXB in 10.1.3.1 Jdev -- is there a way to force the marshaller to NOT output the XML Declaration?

I've found mentions of this for JAXB 2.0:
marshaller.setProperty("jaxb.fragment", Boolean.TRUE);

But it doesn't work in 10.1.3.1...

Any other suggestions?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2010
Added on Jun 16 2009
7 comments
8,162 views