1.

Why Do All New Lines Appear As N, Even On Windows?

Answer»

According to section 2.11 of the XML RECOMMENDATION, 2nd edition:

  • To simplify the tasks of applications, an XML processor MUST normalize line BREAKS in PARSED entities to #xA either by translating the two-character sequence #xD #xA and any #xD that is not followed by #xA to #xA on input before parsing, or by using some other method such that the characters passed to the application are the same as if it did this translation.

In other WORDS, this is exactly what's supposed to happen.

  • Some XML input may escape the r carriage return as 
 and the XML parser will translate this in to a true r character in your JDOM Text. When this Text is output again it will be re-escaped as 
.

According to section 2.11 of the XML Recommendation, 2nd edition:

In other words, this is exactly what's supposed to happen.



Discussion

No Comment Found