users@jaxb.java.net

handle CDATA in jaxb

From: johnhelen <son_at_catalyst.net.nz>
Date: Tue, 14 Jul 2009 21:53:12 -0700 (PDT)

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.