Thanks! You've been a great help!

regards
Tor Meng

John Wilson wrote:


The XML spec (section 2.111 - End of Line Handling) requires the all end of line sequences (CR, LF or CRLF) to replaced by a single LF character. So the XML parser will make that substitution before passing the text to the application. When we pass String data as a parameter to an XML-RPC call we want to preserve the CR characters so we replace them with a character reference. The XML parser will not "normalise" a character reference but will replace the reference with the actual CR character.

So, in summary, we are doing this to ensure that all the characters in the String are delivered unchanged to the recipient.

An excellent resource on the XML spec is Tim Bray's Annotated version http://www.xml.com/axml/testaxml.htm. It's not the very latest version of the spec but I find it very useful.

I hope this helps.


John Wilson
The Wilson Partnership
http://www.wilson.co.uk



Reply via email to