aspose file tools
The moose likes XML and Related Technologies and the fly likes JAXB and CDATA blocks -> bug? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "JAXB and CDATA blocks -> bug?" Watch "JAXB and CDATA blocks -> bug?" New topic
Author

JAXB and CDATA blocks -> bug?

Janne Karhu
Ranch Hand

Joined: Oct 29, 2003
Posts: 33
In short, JAXB seems to condense one or more white spaces to one, even in the case of CDATA-blocks.
Is this a bug in JAXB (Sun reference implementation) ?:
If you use the type "xs:token" in the xml schema that specifies the element,
all white spaces inside the corresponding element of the instance document
(*.xml) are condensed into one space-character from the parsed XML file,
_even if_ you use the CDATA[ ...] -section inside the element.
I tried to use the xs:normalizedString -type instead of xs:token, but after the change the white spaces are not condensed at all (even when I do not use
CDATA-element).
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JAXB and CDATA blocks -> bug?
 
Similar Threads
CDATA type
CDATA in html
CDATA and jdom
CDATA and PCDATA
http status 500 error