On 30 Dec 2005, at 01:48, Goh Tor Meng wrote:

Hi all,

I have question regarding the treatment of '\r' in the method chardata(String).

Presently my application is trying to send a pgp signature using xmlrpc. However we found out that XmlWriter is writing '&#13' when it encounters a carriage return. This is casing a problem on the receiving side during signature verification.

code snippet from XmlWriter
-----------------------------------------------
          case '\r':
              // Avoid normalization of CR to LF.
              writeCharacterReference(c);
              break;
------------------------------------------------

I understand that '\r' is a valid xml character and the isValidXMLChar(char c) method also returns true when '\r' is encountered. But before isValidXMLChar is called,
'&#13' has already been written.

I'm trying to understand why this is so. Can the CR be preserved in the XML message
instead of being written as ''&#13' ?

If this is causing you a problem then you are not using an XML parser to read the response.

Can you please  tell us how you handing the XML-RPC response?

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


Reply via email to