Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JAXB and CDATA blocks -> bug?  RSS feed

 
Janne Karhu
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!