DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26094>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26094 Base64Binary validation failed when length is zero Summary: Base64Binary validation failed when length is zero Product: Xerces-C++ Version: 2.3.0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Validating Parser (Schema) (Xerces 1.5 or up only) AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If a base64binary element have no data, the validation failed with the following message : "Datatype error: Type:InvalidDatatypeValueException, Message:Value '' is not encoded in Base64 ." To reproduce, create an XD with <xs:element name="DONNEES" type="xs:base64Binary"/> and an XML with <DONNEES/> There is also a different behaviour in the Java implementation. One may be right, but which one ? In \src\xercesc\validators\datatype\Base64BinaryDatatypeValidator.cpp we have : if (getLength(content) <= 0) In the JAVA Version of xerces, it seems the test is different : if (getLength( content) < 0) { Which version is right ? It would be fine if the two implementation have the same behaviour. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]