users@jaxb.java.net

Re: [BULK] xsd:any unmarshalled to DOM

From: Sparefroh <zwatte_at_gmx.net>
Date: Wed, 10 Oct 2007 01:05:34 -0700 (PDT)

Jeremiah Voris-2 wrote:
>
> Sparefroh <zwatte_at_gmx.net> wrote on 10/09/2007 10:12:09 AM:
>> I have an xsd:any element in my schema and this element is mapped to a
> DOM
>> element.
>> When I try to unmarshal an XML instance of this element, I get the DOM
>> element as expected, but this DOM element has a different structure than
> the
>> original XML instance.
>> E.g. the unmarshalled DOM has less whitespaces between elements than the
>> original DOM.
>> Whitespaces within elements are the same.
>>
>> Any ideas how to preserve these whitespaces between elements?
>
> The only thing I can think of is to try adding the xml:space attribute to
> your root element: <http://www.w3.org/TR/REC-xml/#sec-white-space>
>

I tried this already but it didn't have any effect to the result :-/

-- 
View this message in context: http://www.nabble.com/xsd%3Aany-unmarshalled-to-DOM-tf4595588.html#a13131310
Sent from the java.net - jaxb users mailing list archive at Nabble.com.