users@jaxb.java.net

Supressing namespace in elements when marshalling

From: gfiehler <gfiehler_at_yahoo.com>
Date: Mon, 3 Nov 2008 17:32:43 -0800 (PST)

I am trying JAXB for the first time and the output of my XML has the xmlns:..
in every element. This makes the XML virtually unreadable. This XML will be
viewed by actual humans so it is necessary that the output is as simple and
efficient as possible. How can I suppress the namespace as well as
xsi:type..

I am getting

<Environment xsi:type="xs:string"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">TEST</Environment>

but would like
<Environment>TEST</Environment>


any ideas would be greatly appreciated.
-- 
View this message in context: http://www.nabble.com/Supressing-namespace-in-elements-when-marshalling-tp20314654p20314654.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.