[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svndiff and XML

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-10-11 04:18:29 CEST

On Tue, Oct 10, 2000 at 10:01:06PM -0400, Greg Hudson wrote:
>...
>... the byte 0 and high-bit-on bytes ...

Yup. Can't put those in. You also cannot include "<", ">", "&", and
sometimes the single/double quote characters.

This has been a known problem, and embedding this kind of text within XML
means that you must quote the stuff. Yes, it is expensive.

(and I'm darn glad that DAV isn't shipping the "big" content back and forth
within XML blobs; that would be a lot of encode/decode; if/when we ship
diffs, though, I hope they can also go bare rather than embedded)n

So yes... there is a problem to overcome. For better or worse.

>...
> Anyway, we have to encode our svndiff data in order to put it in XML
> deltas. The two reasonable options I can see are quoted-printable and
> base64. A comparison:
>...
> Speak up if you care. I think I will start work on a base64 encoder
> this evening, but much of the work would carry over to
> quoted-printable if people think that's best.

I'd go with the base64. Strip down the file that I just sent to what is
needed. It has a compatible license, so we can use it without a problem in
SVN.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:10 2006

This is an archived mail posted to the Subversion Dev mailing list.