Re: [xml] Patch for base64Binary datatype.

Anthony Carrico wrote:
This is my first time playing with the libxml2 codebase, so I hope I
didn't violate any rules or overlook something obvious. Here is a
patch to support base64Binary datatypes:

+        case XML_SCHEMAS_BASE64BINARY: {
+        /* ISSUE:
+           Ignore all stray characters? (yes, currently)
+           Worry about long lines? (no, currently)
+           rfc2045.txt:
+           "The encoded output stream must be represented in lines of
+           no more than 76 characters each.  All line breaks or other
+           characters not found in Table 1 must be ignored by decoding
+           software.  In base64 data, characters other than those in
+           Table 1, line breaks, and other white space probably
+           indicate a transmission error, about which a warning
+           message or even a message rejection might be appropriate
+           under some circumstances." */

I think the 'lines of at most 76 characters' part should be binned when used inside xml - It doesn't look like a useful restriction and introduces significant whitespace to documents that might otherwise not have it.


No Fate
