users@jaxb.java.net

Marshal to unqualified form?

From: <david_at_davidkarlsen.com>
Date: Thu, 26 Nov 2009 15:15:07 +0100 (CET)

Hi!

I have a schema (a SEPA PACS002 one) which is defined as
elementFormDefault="qualified"

Hence when I marshal and object instance to XML all the elements are
qualified with a namespace prefix.
Do I have to write a NamespacePrefixFormatter to get them unqialified? I
cannot seem to find any options for the Marshaller to get this OOTB.

The other alternative of course, is to change the
elementQualification in the schema - but as these are external I'd rather
try to avoid that ( and it would be nice to control it at runtime - to be
able to support both forms if neccessary).



--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com
Sent from my bog-standard SMTP client