XmlWriter.isValidXMLChar(char) incorrectly determines ASCII space (0x20) 
character to be invalid XML
----------------------------------------------------------------------------------------------------

         Key: XMLRPC-69
         URL: http://issues.apache.org/jira/browse/XMLRPC-69
     Project: XML-RPC
        Type: Bug
  Components: Releases  
    Versions: 2.0    
 Environment: All
 Reporter: Claude Zervas


The ASCII space character (0x20) should be valid XML (as I understand it). The 
isValidXMLChar() method returns false and hence a space character  gets encoded 
as a character entity ( ). This bug was checked in with version 1.14 of 
XmlWriter.java and exists in the current release version.

A possible patch would be as follows:

@@ -463,7 +463,7 @@
             return true;

         default:
-            return ( (0x20 < c && c <= 0xd7ff) ||
+            return ( (0x20 <= c && c <= 0xd7ff) ||
                      (0xe000 < c && c <= 0xfffd) ||
                      (0x10000 < c && c <= 0x10ffff) );
         }


thanks,
- Claude

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to