Jax B converts 'r' into '\n'

Greetings,

My xml file contains special chars such as '\r'.

JAXB converts \'r' chars into '\n' while reading xml file.

I am reading the values into String variables.

How can Prevent that.

Do I need to change the variable type in my XSD.

Your help is appreaciated.

-Prasad

[326 byte] By [prasadkumbharea] at [2007-11-27 11:58:10]
# 1

Here's a link to the XML Recommendation. (That's the document that defines how XML works.)

http://www.w3.org/TR/REC-xml/

Look at section 2.11 and you will see that JAXB, like every other application that processes XML, is required to do that.

DrClapa at 2007-7-29 19:18:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...