[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Storing XML as an attribute value, how to disable BASE64 encoding ?



At 02:48 PM 12/20/00 -0500, Paul Duffy wrote:
>I'm trying to load a chunk of XML into an attribute value.  The XML starts with the "<" character.


RFC2798, ABNF:
   SAFE-INIT-CHAR        = %x01-09 / %x0B-0C / %x0E-1F /
                           %x21-39 / %x3B / %x3D-7F
                           ; any value <= 127 except NUL, LF, CR,
                           ; SPACE, colon (":", ASCII 58 decimal)
                           ; and less-than ("<" , ASCII 60 decimal)

RFC2798, Note 4:
   Any value that contains characters other than those defined as
   "SAFE-CHAR", or begins with a character other than those
   defined as "SAFE-INIT-CHAR", above, MUST be base-64 encoded.

Hence, you may not use the SAFE-STRING value-spec option
if the value first character is "<".  You must use either
the BASE64-STRING value-spec option or the url value-spec
option.

Kurt