[erlang-questions] erlsom:write encode ">"
Anders Nygren
anders.nygren@REDACTED
Sun Jun 22 22:13:27 CEST 2008
On Sun, Jun 22, 2008 at 12:05 PM, Willem de Jong <w.a.de.jong@REDACTED> wrote:
> I thought that that was not required. Just to be sure I had another look at
> the spec, and found out that it is indeed not required, *except* if the
> previous characters are "]]" ("for compatibility reasons"). In practice I
> can't imagine that any parser would have problems with ">", but I'll change
> it anyway to be fully conformant even in this special case.
>
Sorry, I didn't know that. I just saw that Axis is sending > and
we were not, so I assumed that it was an error.
/Anders
> Regards,
> Willem
>
> On Sat, Jun 21, 2008 at 4:50 PM, Anders Nygren <anders.nygren@REDACTED>
> wrote:
>>
>> Hi
>> erlsom:write does not encode ">" to ">"
>>
>> this patch fixes that.
>>
>> /Anders
>>
>> Index: lib/erlsom/src/erlsom_write.erl
>> ===================================================================
>> --- lib/erlsom/src/erlsom_write.erl (revision 1051)
>> +++ lib/erlsom/src/erlsom_write.erl (working copy)
>> @@ -648,6 +648,7 @@
>> escapeChar(38) -> "&";
>> escapeChar(34) -> """;
>> escapeChar(60) -> "<";
>> +escapeChar(62) -> ">";
>> escapeChar(Char) -> Char.
>>
>> decodeIfRequired(Text) when is_binary(Text) ->
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://www.erlang.org/mailman/listinfo/erlang-questions
>
>
More information about the erlang-questions
mailing list