Hi,
I am using SAX parser to parse an XML file which has <pre> element. Now I want to display the content in this tag as it is ( which includes tabs and carriage returns) into a
jsp file. But I think that the parser is not recognizing carriage returns.
eg.
<pre>NameAgeSexRoks22MaleAman44Male</pre>
The output should be:
Name Age Sex
Roks 22 Male
Aman 44 Male
I think that in the characters() method the nextline characters after Sex,Male are not read. The encoding used is iso-8859-1.
The output which I am getting is :
Name Age Sex Roks 22 Male Aman 44 Male