Many thanks
Wolfgang Laun-2 wrote:
>
> You are explicitly requesting the removal of CR, LF and TAB by using
> xs:normalizedString (cf.
> http://www.w3.org/TR/xmlschema-2/#normalizedString).
>
> Change the schema type to xs:string.
>
> -W
>
> On 7/15/09, johnhelen <son_at_catalyst.net.nz> wrote:
>>
>> In my xsd file, I have element
>>
>> <xs:element name="value" type="xs:normalizedString" minOccurs="0"
>> maxOccurs="unbounded"/>
>>
>> Then in my xml file (presenting a object), I have
>>
>> <value><![CDATA[
>> First line
>> Second line
>> Third line
>> ]]>
>> </value>
>>
>> It can be seen that there are three lines in CDATA. However, when I
>> unmarshal (convert) this xml file into an object, the data in the field
>> above is concatenated into only one line (I use System.out.println)
>>
>> Could you please help
>>
>> --
>> View this message in context:
>> http://www.nabble.com/handle-CDATA-in-jaxb-tp24491875p24491875.html
>> Sent from the java.net - jaxb users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>
>
--
View this message in context: http://www.nabble.com/handle-CDATA-in-jaxb-tp24491875p24506365.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.